summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordan <[email protected]>2023-05-28 16:39:20 -0400
committerdan <[email protected]>2023-05-28 16:39:20 -0400
commit1d517b83dc36a1ec6cf70f08321971f4be173040 (patch)
treedb37cfcce67d47dcfad16455c593ac3d8cd4e9cf
parent1d1300ef90b6b6bf70d18a81d1050a7ac0e89ea8 (diff)
downloaddump-1d517b83dc36a1ec6cf70f08321971f4be173040.tar.gz
dump-1d517b83dc36a1ec6cf70f08321971f4be173040.tar.bz2
dump-1d517b83dc36a1ec6cf70f08321971f4be173040.zip
fix: sh http server remove content-type header
-rw-r--r--http-server.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-server.sh b/http-server.sh
index 3e47a4e..46633c7 100644
--- a/http-server.sh
+++ b/http-server.sh
@@ -29,7 +29,7 @@ while true; do
# Without Content-Length header, connection will not close properly
len="${#content}"
- response="HTTP/1.1 200 OK\nContent-Length: $len\nContent-Type: plain/text\n\n$content"
+ response="HTTP/1.1 200 OK\nContent-Length: $len\n\n$content"
elif [ -z "$line" ]; then # end of request
# send response once all of the request has been read
printf "%b" "$response" > "$outfifo"