From: Paul Hänsch Date: Sat, 11 Aug 2018 12:35:30 +0000 (+0200) Subject: bugfix: header assembly with $BR variable set correctly X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3a49d642c02f8577096cfd31a89cb07714a95215;p=cgilite bugfix: header assembly with $BR variable set correctly --- diff --git a/cgilite.sh b/cgilite.sh index e0d4b93..1235077 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -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