]> git.plutz.net Git - shcgi/blobdiff - cgi.sh
introduced redirect function
[shcgi] / cgi.sh
diff --git a/cgi.sh b/cgi.sh
index a9c59d93f0ed19e3f4bd4de107f12918eaea9c00..d9ee5bd012ed8b3780a4ed78ae75c8f82dda0d0a 100755 (executable)
--- a/cgi.sh
+++ b/cgi.sh
@@ -86,3 +86,8 @@ urlsave(){
          s;'\'';%27;g;
          s;\?;%3f;g;'
 }
+
+redirect(){
+  printf '%s\n\n' "Location: $*"
+  exit 0
+}