fix errors
parent
1779e464e8
commit
aff67740f8
4
pyhi.sh
4
pyhi.sh
|
@ -11,7 +11,9 @@ HYPERTEXT=$("$PYHP" "$PYH" | python3 - "$@")
|
|||
|
||||
# check for headers, if present assume the pyh file is going to handle them
|
||||
if head -n1 <<< "$HYPERTEXT" | grep "[A-Za-z][A-Za-z0-9\-]*: "; then
|
||||
;
|
||||
true
|
||||
else
|
||||
echo -ne "Content-type: text/html\\n\\n"
|
||||
fi
|
||||
|
||||
echo "$HYPERTEXT"
|
Loading…
Reference in New Issue