]> git.plutz.net Git - cgilite/commitdiff
bugfix: header assembly with $BR variable set correctly
authorPaul Hänsch <paul@plutz.net>
Sat, 11 Aug 2018 12:35:30 +0000 (14:35 +0200)
committerPaul Hänsch <paul@plutz.net>
Sat, 11 Aug 2018 12:35:30 +0000 (14:35 +0200)
cgilite.sh

index e0d4b9392cda8709e80509b176961957ce0008ca..12350777ae2f9a94c8ea9137eaef654e97746498 100755 (executable)
@@ -92,7 +92,7 @@ if [ -z "$REQUEST_METHOD" ]; then
              "$cgilite_response" "${cgilite_cl}"
            cat
            [ "${cgilite_cl#Connection}" = "${cgilite_cl}" ]; exit;;
-      *) cgilite_response="$cgilite_response${BR}$l";;
+      *) cgilite_response="${cgilite_response:+${cgilite_response}${BR}}${l}";;
     esac; done || exit 0;
     (sleep $cgilite_timeout && kill $$) & cgilite_watchdog=$!
   done