X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=index.cgi;h=907041ee6395a89e4979b34e71b44bea47c124e5;hp=319b9be2a986d60a7abc78536716f289a9913604;hb=28a25b1e12775022d456c2a6d312b69b283d942f;hpb=609086db135aac50ab83825aed16c9481c99715d 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 $@