fix status code in cgi script
This commit is contained in:
parent
470e47a018
commit
f6bc000adc
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue