]> git.plutz.net Git - clickslide/commitdiff
force http status code with redirect
authorpaul <paul@plutz.net>
Wed, 8 Nov 2017 15:24:05 +0000 (15:24 +0000)
committerpaul <paul@plutz.net>
Wed, 8 Nov 2017 15:24:05 +0000 (15:24 +0000)
svn path=/trunk/; revision=56

cgilite.sh

index c00f9e7cd930674b052e3af1d49b1ebc68562cb7..0edb5bca75b8d29c76070100e5fbbf1df69e8796 100755 (executable)
@@ -111,6 +111,6 @@ SET_COOKIE(){
 }
 
 REDIRECT(){
-  printf 'Location: %s\r\n\r\n' "$*"
+  printf '%s 303 See Other\r\nLocation: %s\r\n\r\n' "$SERVER_PROTOCOL" "$*"
   exit 0
 }