summaryrefslogtreecommitdiff
path: root/rc/bin/rc-httpd
AgeCommit message (Collapse)Author
2015-06-02rc-httpd: various fixescinap_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-14rc-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-14rc-httpd: support for http basic authentication, fix cgi support to work ↵cinap_lenrek
with hgweb.cgi
2014-07-11rc-httpd/handlers/serve-static: restore simple test for file type and ↵stanley lieber
hardcode max_age to 1 hour (thanks eekee)
2014-02-22rc-httpd/handlers/serve-static: restore Content-lengthstanley lieber
2013-02-19rc-httpd/handlers/serve-static: charset=utf-8stanley lieber
2013-02-04add rc-httpdstanley lieber