From 8ef66ca21218af00181bf78f37a5ede0238a7fa1 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 14 Mar 2015 01:02:43 +0100 Subject: rc-httpd: support for http basic authentication, fix cgi support to work with hgweb.cgi --- rc/bin/rc-httpd/handlers/error | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rc/bin/rc-httpd/handlers/error') diff --git a/rc/bin/rc-httpd/handlers/error b/rc/bin/rc-httpd/handlers/error index e38d41f01..282d8706c 100755 --- a/rc/bin/rc-httpd/handlers/error +++ b/rc/bin/rc-httpd/handlers/error @@ -19,6 +19,11 @@ fn do_error{ ' } +fn 401{ + do_error '401 Unauthorized' \ + 'The requested path '^$"location^' requires authorization.' +} + fn 404{ do_error '404 Not Found' \ 'The requested path '^$"location^' was not found on this server.' -- cgit v1.2.3