From: paul Date: Sun, 19 Mar 2017 19:08:06 +0000 (+0000) Subject: cgi conformant 404s X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=28a25b1e12775022d456c2a6d312b69b283d942f cgi conformant 404s svn path=/trunk/; revision=53 --- diff --git a/index.cgi b/index.cgi index 319b9be..907041e 100755 --- a/index.cgi +++ b/index.cgi @@ -54,7 +54,9 @@ elif [ -n "$ACTION" ] && [ -x "${_EXEC}/actions/${ACTION}.sh" ]; then elif [ -n "$PAGE" ] && [ -x "${_EXEC}/pages/${PAGE}.sh" ]; then . "$_EXEC/shcgi/page.sh" else - printf 'HTTP/1.1 404 Not Found\r\n' + printf 'Status: 404 Not Found\r\n' PAGE=error - [ -x "${_EXEC}/pages/${PAGE}.sh" ] && . "$_EXEC/shcgi/page.sh" + [ -x "${_EXEC}/pages/${PAGE}.sh" ] \ + && . "$_EXEC/shcgi/page.sh" \ + || printf '\r\n' fi |HTTP_format $@