Commits
- Commit:
e3ddf390950bf51d0c6c9cc6b931879006936e4c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add the ``entrypoint'' option
- Commit:
afc025ff600c11e5cbe8794b944b560492290cce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
restart the daemon instead of kill+start
this way we can also test the reload capability!
- Commit:
6abda252e960943a302f7a945b1d008e463ea316
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added ``block return'' and ``strip'' options
- Commit:
87f2b68b58fc46ff12a592474e65280ef8455aff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cgi now follows globbing rules
- Commit:
5f715ce43fa60b2347d6dc64588c5ffe61ebc067
- From:
- Omar Polo <op@omarpolo.com>
- Date:
print the header in the directory listing
- Commit:
35744950aa0953bee3035400e8035af844a675ba
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify handle_cgi
Now that I got rid of the enum+switch, adding more state is easier.
Before, we used an hack to remember if we had read the CGI reply or
not (c->code = -1).
This introduces a new state, handle_cgi_reply that reads the CGI
script reply, logs it, and only then switches to handle_cgi.
handle_cgi itself is cleaner, now it only reads into c->sbuf and send
what it had red.
We even get, almost for free, the 42 error. If read exists with -1 or
0 from in handle_cgi_reply, we return a proper error to the client.
We can extend this further in the future and also try to validate the
CGI reply (for now we're only looking for a \n).
- Commit:
6ff23c673989f92a42da0029728fe80ca3dde40f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use absolute paths in the regression suite
- Commit:
46af8c6cfe1f1ec15d93bc58791f4596c610785b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop the daemon config in favour of the -f flag
Now it daemonize by default when running with a config, unless the -f
flag is given.
- Commit:
252908e6bb335c42249a3d5fe6ecaa4daf5a3e3e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added support for location blocks
- Commit:
c8b74339185123feebb6164b91f500f1930e45ff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added support for location blocks
- Commit:
7b31a6386d6f80a3dd79af7d56bbf48b6eb7a264
- From:
- Omar Polo <op@omarpolo.com>
- Date:
test CGI with big files
- Commit:
e7a2a99b5acfd15f0a0bba63344ec028a36700b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added index option
- Commit:
6cdecad88df2a3f0dca17db0a176bf34d67ade83
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix test portability
wc return 2048 on fedora (it doesn't count the trailing \n), while on
OpenBSD, Void linux on aarch64 and Alpine linux on vmd(8) returns
2049.
- Commit:
31a4993a9478d17776d45ab9041001a4ced37c17
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use gg instead of gg.py for the regression suite
- Commit:
3309ef975cf570aeb5c1dbf568af323c19bbb3c0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
accumulate the whole response line for CGI scripts