ref: 8648e065346f354c354789fddf0e463bbeb529cb
parent: 873a7716e0652df14ecf881ba61767a2d78f3824
author: Alex Musolino <alex@musolino.id.au>
date: Mon Jun 17 09:13:40 EDT 2019
rc-httpd: only emit charset option for text/plain content type
--- a/rc/bin/rc-httpd/handlers/serve-static
+++ b/rc/bin/rc-httpd/handlers/serve-static
@@ -36,7 +36,7 @@
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