diff options
author | Alex Musolino <alex@musolino.id.au> | 2019-06-17 13:13:40 +0930 |
---|---|---|
committer | Alex Musolino <alex@musolino.id.au> | 2019-06-17 13:13:40 +0930 |
commit | 8648e065346f354c354789fddf0e463bbeb529cb (patch) | |
tree | 57423e2c651b92c1ea463d80f2100b46c34d9b0f /rc | |
parent | 873a7716e0652df14ecf881ba61767a2d78f3824 (diff) | |
download | plan9front-8648e065346f354c354789fddf0e463bbeb529cb.tar.xz |
rc-httpd: only emit charset option for text/plain content type
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/rc-httpd/handlers/serve-static | 2 |
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 |