summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Musolino <alex@musolino.id.au>2019-06-17 13:13:40 +0930
committerAlex Musolino <alex@musolino.id.au>2019-06-17 13:13:40 +0930
commit8648e065346f354c354789fddf0e463bbeb529cb (patch)
tree57423e2c651b92c1ea463d80f2100b46c34d9b0f
parent873a7716e0652df14ecf881ba61767a2d78f3824 (diff)
downloadplan9front-8648e065346f354c354789fddf0e463bbeb529cb.tar.xz
rc-httpd: only emit charset option for text/plain content type
-rwxr-xr-xrc/bin/rc-httpd/handlers/serve-static2
1 files changed, 1 insertions, 1 deletions
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