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 e0d4b93..1235077 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