From 7f73b08b3ae495cab57cbcaa57236e653a5707c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 5 Jul 2018 00:09:26 +0200 Subject: [PATCH 1/1] yet slightly shorter version + removed debugging --- cgilite.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cgilite.sh b/cgilite.sh index 3292e03..1c951f4 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -88,9 +88,9 @@ if [ -z "$REQUEST_METHOD" -a -z "$SERVER_PROTOCOL" ]; then Content-Length:*) cgilite_cl="${l}";; $CR) printf '%s %s\r\n%s\n%s\n\r\n' \ 'HTTP/1.1' "${cgilite_status%${CR}}" \ - "$cgilite_response" "${cgilite_cl}" |tee /dev/stderr - cat; - [ "${cgilite_cl#Connection}" = "${cgilite_cl}" ] && exit 0 || exit 1;; + "$cgilite_response" "${cgilite_cl}" + cat + [ "${cgilite_cl#Connection}" = "${cgilite_cl}" ]; exit;; *) cgilite_response="$cgilite_response${BR}$l";; esac; done || exit 0; (sleep $cgilite_timeout && kill $$) & cgilite_watchdog=$! -- 2.39.2