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
|
# 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
|
if head -n1 <<< "$HYPERTEXT" | grep "[A-Za-z][A-Za-z0-9\-]*: "; then
|
||||||
;
|
true
|
||||||
else
|
else
|
||||||
echo -ne "Content-type: text/html\\n\\n"
|
echo -ne "Content-type: text/html\\n\\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "$HYPERTEXT"
|
Loading…
Reference in New Issue