From 8648e065346f354c354789fddf0e463bbeb529cb Mon Sep 17 00:00:00 2001 From: Alex Musolino Date: Mon, 17 Jun 2019 13:13:40 +0930 Subject: rc-httpd: only emit charset option for text/plain content type --- rc/bin/rc-httpd/handlers/serve-static | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/bin/rc-httpd/handlers/serve-static b/rc/bin/rc-httpd/handlers/serve-static index 8c2ada581..1e84f4c26 100755 --- a/rc/bin/rc-httpd/handlers/serve-static +++ b/rc/bin/rc-httpd/handlers/serve-static @@ -36,7 +36,7 @@ case * max_age=3600 # 1 hour echo 'HTTP/1.1 200 OK'^$cr emit_extra_headers -echo 'Content-type: '^$type^'; charset=utf-8'^$cr +echo 'Content-type: '^$type^$cr echo 'Content-length: '^`{ls -l $full_path | awk '{print $6}'} echo 'Cache-control: max-age='^$max_age^$cr echo $cr -- cgit v1.2.3