From aff67740f8f9488ea662ed7a94b10d86c9a10662 Mon Sep 17 00:00:00 2001 From: Jan Danielzick Date: Tue, 5 Apr 2022 02:42:42 +0200 Subject: [PATCH] fix errors --- pyhi.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyhi.sh b/pyhi.sh index 710ef96..14489e5 100644 --- a/pyhi.sh +++ b/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" \ No newline at end of file