Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-04-01 | /rc/bin/rc-httpd/handlers/error: restore fn 400 (thanks, qeed) | glenda | |
2022-04-01 | /rc/bin/rc-httpd/handlers/{dir-index, serve-static}: commit the correct ↵ | glenda | |
files this time (thanks, igor) | |||
2022-04-01 | /rc/bin/rc-httpd/handlers/{dir-index, serve-static}: fix directory traversal ↵ | glenda | |
bug (thanks, igor) | |||
2021-11-21 | /rc/bin/rc-httpd/{rc-httpd, handlers/error}: do some minimal sanitization on ↵ | glenda | |
$SERVER_NAME before handing it off to select-handler. this prevents malformed Host: headers from retrieving arbitrary files from the file system. (thanks, Lightning) | |||
2021-10-29 | rc-httpd: fold two sed calls into one when computing location | Igor Böhm | |
2020-08-02 | rc-httpd: fix invalid test(1) invocation in dir-index | Alex Musolino | |
2020-01-07 | rc-httpd: append carriage return to content-length header | Alex Musolino | |
2019-06-20 | rc-httpd: serve markdown with text/plain content-type | Alex Musolino | |
2019-06-17 | rc-httpd: set charset=utf-8 for all text/* content types | Alex Musolino | |
2019-06-17 | rc-httpd: only emit charset option for text/plain content type | Alex Musolino | |
2019-06-05 | rc-httpd(8): avoid duplicate log output in dir-index handler | Alex Musolino | |
Delay calling do_log until just before emitting the response. This avoids calling do_log before potentially handing control to the static-index handler, which also calls do_log. | |||
2015-06-02 | rc-httpd: cleanup cgi handler | cinap_lenrek | |
- avoid silly stats and checks for $cgi_dir, just use status from builtin cd. - log proper http status code from the cgi script | |||
2015-06-02 | rc-httpd: various fixes | cinap_lenrek | |
care has to be taken when splitting the host into SERVER_NAME and SERVER_PORT, as ipv6 uses : in the host part. also do it consistently, the host can be set thru the request uri and the host header. set REMOTE_USER to empty string to prevent accidents. we do not handle chunked transfer encoding, just assuming the client doesnt do keep alive is wrong. we have to reject the post when the client tries chunked post with 411 "Length required" error. | |||
2015-05-14 | rc-httpd/handlers/dir-index: plan 9 files may be chmod +a: | stanley lieber | |
The mode printed under the -l option contains 11 characters, interpreted as follows: the first character is d if the entry is a directory; a if the entry is an append-only file; - if the entry is a plain file. Therefore, handle them in automatically generated directory listings. | |||
2015-03-14 | rc-httpd: support for http basic authentication, fix cgi support to work ↵ | cinap_lenrek | |
with hgweb.cgi | |||
2014-07-11 | rc-httpd/handlers/serve-static: restore simple test for file type and ↵ | stanley lieber | |
hardcode max_age to 1 hour (thanks eekee) | |||
2014-02-22 | rc-httpd/handlers/serve-static: restore Content-length | stanley lieber | |
2013-02-19 | rc-httpd/handlers/serve-static: charset=utf-8 | stanley lieber | |
2013-02-04 | add rc-httpd | stanley lieber | |