rc-httpd: only emit charset option for text/plain content type
This commit is contained in:
parent
873a7716e0
commit
8648e06534
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue