summaryrefslogtreecommitdiff
path: root/bin/lowercase.cgi
blob: 376ad544d83732dbe05f4c3e3d3662825d728afe (plain)
1
2
3
4
5
6
7
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" \
	''