fix status code in cgi script

This commit is contained in:
prx 2021-01-14 13:49:46 +01:00
commit f6bc000adc
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
echo "20 cgi_test"
printf "%s %s: cgi_test\r\n" "20 text/plain"
echo "env vars:"
echo $GATEWAY_INTERFACE

View file

@ -1,6 +1,7 @@
#!/bin/sh
echo "20 cgi_test"
printf "%s %s: cgi_test\r\n" "20 text/plain"
u=""
if [ -n "${QUERY_STRING}" ]; then
u="$(printf "%s" "${QUERY_STRING}" | cut -d'=' -f2)" #yeah, it's awful..