From: Don Armstrong Date: Sat, 24 Sep 2016 21:40:01 +0000 (-0700) Subject: send out the right charset on all requests X-Git-Tag: release/2.6.0~162 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=1cb0faae7b13b38890be635a6018fbf86d5e418c send out the right charset on all requests --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 7a94982..cae46f9 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -146,7 +146,12 @@ $etag = ], ); if (not $etag) { - print $q->header(-status => 304); + print $q->header(-status => 304, + -cache_control => 'public, max-age=600', + -etag => $etag, + -charset => 'utf-8', + -content_type => 'text/html', + ); print "304: Not modified\n"; exit 0; } @@ -156,6 +161,7 @@ if ($q->request_method() eq 'HEAD' and not defined($att) and not $mbox) { print $q->header(-status => 200, -cache_control => 'public, max-age=600', -etag => $etag, + -charset => 'utf-8', -content_type => 'text/html', ); exit 0;