]> git.lizzy.rs Git - plan9front.git/commitdiff
rc-httpd: only emit charset option for text/plain content type
authorAlex Musolino <alex@musolino.id.au>
Mon, 17 Jun 2019 03:43:40 +0000 (13:13 +0930)
committerAlex Musolino <alex@musolino.id.au>
Mon, 17 Jun 2019 03:43:40 +0000 (13:13 +0930)
rc/bin/rc-httpd/handlers/serve-static

index 8c2ada581a864daea306594bc259e9b0266cbf18..1e84f4c26a4ce40ce74abae675406a5d8c78a0fc 100755 (executable)
@@ -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