From 37edc0cbad2bb6494a4828ba72a7b3883e5d7664 Mon Sep 17 00:00:00 2001 From: sl Date: Mon, 22 Nov 2021 00:45:43 -0500 Subject: [PATCH] bin/contrib/rc-httpd/handlers/error: add missing error 400 --- bin/contrib/rc-httpd/handlers/error | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/contrib/rc-httpd/handlers/error b/bin/contrib/rc-httpd/handlers/error index 282d870..fa594a9 100755 --- a/bin/contrib/rc-httpd/handlers/error +++ b/bin/contrib/rc-httpd/handlers/error @@ -3,7 +3,7 @@ fn do_error{ echo 'HTTP/1.1 '^$1^$cr emit_extra_headers - echo 'Content-type: text/html'^$cr + echo 'Content-type: text/html; charset=utf-8'^$cr echo $cr echo ' @@ -19,6 +19,11 @@ fn do_error{ ' } +fn 400{ + do_error '400 Bad Request' \ + 'The request was invalid.' +} + fn 401{ do_error '401 Unauthorized' \ 'The requested path '^$"location^' requires authorization.'