From: paul Date: Sat, 9 Dec 2017 20:20:16 +0000 (+0000) Subject: when redirecting send status code as specified in CGI X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=cb80645196ee9d9a757434e33d2a2a1c48b0a2a3;p=cgilite when redirecting send status code as specified in CGI svn path=/trunk/; revision=59 --- diff --git a/cgilite.sh b/cgilite.sh index cbfa724..e009a2f 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -126,6 +126,6 @@ SET_COOKIE(){ } REDIRECT(){ - printf '%s 303 See Other\r\nLocation: %s\r\n\r\n' "$SERVER_PROTOCOL" "$*" + printf 'Status: 303 See Other\r\nLocation: %s\r\n\r\n' "$*" exit 0 }