diff options
Diffstat (limited to 'bin/lowercase.cgi')
-rw-r--r-- | bin/lowercase.cgi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/lowercase.cgi b/bin/lowercase.cgi new file mode 100644 index 0000000..376ad54 --- /dev/null +++ b/bin/lowercase.cgi @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +uri="${REQUEST_SCHEME:-http}://${HTTP_HOST}${PATH_INFO}" +if test -n "$QUERY_STRING"; then + uri+="?$QUERY_STRING" +fi +printf '%s\r\n' \ + "Location: $uri" \ + '' |