]> git.plutz.net Git - clickslide/commitdiff
yet slightly shorter version + removed debugging
authorPaul Hänsch <paul@plutz.net>
Wed, 4 Jul 2018 22:09:26 +0000 (00:09 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 4 Jul 2018 22:09:26 +0000 (00:09 +0200)
cgilite.sh

index 3292e031a81c6672baa47f569108f17caaf6e101..1c951f4ed1483756db1f4147e31223da24b29db5 100755 (executable)
@@ -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}}" \
       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=$!
       *) cgilite_response="$cgilite_response${BR}$l";;
     esac; done || exit 0;
     (sleep $cgilite_timeout && kill $$) & cgilite_watchdog=$!