From: Paul Hänsch Date: Wed, 4 Jul 2018 22:20:25 +0000 (+0200) Subject: remove obsolete sed processing of response headers X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=eadd19bbf26273a47f1ec3561f67db4a0f6bd12b;p=clickslide remove obsolete sed processing of response headers --- diff --git a/cgilite.sh b/cgilite.sh index 1c951f4..f227d27 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -82,8 +82,7 @@ if [ -z "$REQUEST_METHOD" -a -z "$SERVER_PROTOCOL" ]; then # script. cgilite_status='200 OK'; cgilite_response=''; cgilite_cl="Connection: close${CR}"; - . "$0" |sed '1{s;^Status: ;HTTP/1.1 ;; t; s;^;HTTP/1.1 200 OK\r\n;;}' \ - | while read -r l; do case $l in + . "$0" | while read -r l; do case $l in Status:*) cgilite_status="${l#Status: }";; Content-Length:*) cgilite_cl="${l}";; $CR) printf '%s %s\r\n%s\n%s\n\r\n' \