]> git.plutz.net Git - clickslide/commitdiff
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 cbfa72466e1b1217988493e02e12238245e4fa69..e009a2fed49748e4a9fd9905861643818f766c0c 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
 }