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 c00f9e7..0edb5bc 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
 }