From eadd19bbf26273a47f1ec3561f67db4a0f6bd12b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 5 Jul 2018 00:20:25 +0200 Subject: [PATCH] remove obsolete sed processing of response headers --- cgilite.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' \ -- 2.39.2