rc-httpd: only emit charset option for text/plain content type

This commit is contained in:
Alex Musolino 2019-06-17 13:13:40 +09:30
parent 873a7716e0
commit 8648e06534

View file

@ -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