From 960ed70b52aab401cec90d7044f38f5d682b74c8 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 10 Sep 2022 14:06:11 -0600 Subject: [PATCH] Fixed response status headers --- back/lib/http_res | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/back/lib/http_res b/back/lib/http_res index b31878d..15d60df 100755 --- a/back/lib/http_res +++ b/back/lib/http_res @@ -6,10 +6,10 @@ # Parse status status='' case "${1}" in - ''|'0'|'200') status='Status: 200 OK\n';; - '202') status='Status: 202 Accepted\n';; - '400') status='Status: 400 Bad Request\n';; - '500') status='Status: 500 Internal Server Error\n';; + ''|'0'|'200') status='200 OK\n';; + '202') status='202 Accepted\n';; + '400') status='400 Bad Request\n';; + '500') status='500 Internal Server Error\n';; *) exit 3;; esac @@ -24,5 +24,4 @@ elif [ "${2}" == '' ] fi # Send response -printf "${status}${content_type}\n${body}\n" >>"${LOGFILE}" printf "${status}${content_type}\n${body}\n" \ No newline at end of file