diff options
author | Eric Wong <e@80x24.org> | 2014-04-30 21:39:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-30 21:42:39 +0000 |
commit | 2530c92abd468d9cba8d264237cdee42235d6842 (patch) | |
tree | e1ee63cb85e2a39ec9f9148728a89838e5963210 | |
parent | d444d9aebc6e401333968ec697c48fb23214a1ea (diff) | |
download | public-inbox-2530c92abd468d9cba8d264237cdee42235d6842.tar.gz |
This ought to prevent browsers from misguessing/misdetecting things.
-rwxr-xr-x | public-inbox.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public-inbox.cgi b/public-inbox.cgi index 3bc6eca3..1d43b86f 100755 --- a/public-inbox.cgi +++ b/public-inbox.cgi @@ -132,7 +132,7 @@ sub get_atom { sub get_index { my ($ctx, $cgi, $top) = @_; require PublicInbox::Feed; - [ 200, [ 'Content-Type' => 'text/html' ], + [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], [ PublicInbox::Feed->generate_html_index({ git_dir => $ctx->{git_dir}, listname => $ctx->{listname}, @@ -184,7 +184,7 @@ sub get_mid_html { uri_escape_utf8($ctx->{mid})); my $pfx = "../f/$mid_href.html"; require Email::MIME; - [ 200, [ 'Content-Type' => 'text/html' ], + [ 200, [ 'Content-Type' => 'text/html; charset=UTF-8' ], [ PublicInbox::View->as_html(Email::MIME->new($$x), $pfx) ] ]; } |