From 28a25b1e12775022d456c2a6d312b69b283d942f Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 19 Mar 2017 19:08:06 +0000 Subject: [PATCH] cgi conformant 404s svn path=/trunk/; revision=53 --- index.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 $@ -- 2.39.2