Commit graph

7 commits

Author SHA1 Message Date
cinap_lenrek
1a1863e5dc rc-httpd: cleanup cgi handler
- 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 16:56:19 +02:00
stanley lieber
20b8f1e777 rc-httpd/handlers/dir-index: plan 9 files may be chmod +a:
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-05-14 21:04:51 -04:00
cinap_lenrek
8ef66ca212 rc-httpd: support for http basic authentication, fix cgi support to work with hgweb.cgi 2015-03-14 01:02:43 +01:00
stanley lieber
b46a3ee95f rc-httpd/handlers/serve-static: restore simple test for file type and hardcode max_age to 1 hour (thanks eekee) 2014-07-11 23:24:27 -04:00
stanley lieber
0201795805 rc-httpd/handlers/serve-static: restore Content-length 2014-02-22 02:24:37 -05:00
stanley lieber
40dee61f91 rc-httpd/handlers/serve-static: charset=utf-8 2013-02-19 18:13:32 -06:00
stanley lieber
c877493fb0 add rc-httpd 2013-02-04 16:40:05 -06:00