when redirecting send status code as specified in CGI
authorpaul <paul@plutz.net>
Sat, 9 Dec 2017 20:20:16 +0000 (20:20 +0000)
committerpaul <paul@plutz.net>
Sat, 9 Dec 2017 20:20:16 +0000 (20:20 +0000)
svn path=/trunk/; revision=59

cgilite.sh

index cbfa724..e009a2f 100755 (executable)
@@ -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
 }