From: Paul Hänsch Date: Wed, 4 Jul 2018 22:09:26 +0000 (+0200) Subject: yet slightly shorter version + removed debugging X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=7f73b08b3ae495cab57cbcaa57236e653a5707c2;p=clickslide yet slightly shorter version + removed debugging --- 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=$!