remove obsolete sed processing of response headers
authorPaul Hänsch <paul@plutz.net>
Wed, 4 Jul 2018 22:20:25 +0000 (00:20 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 4 Jul 2018 22:20:25 +0000 (00:20 +0200)
cgilite.sh

index 1c951f4..f227d27 100755 (executable)
@@ -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' \