From 1cb0faae7b13b38890be635a6018fbf86d5e418c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 24 Sep 2016 14:40:01 -0700 Subject: [PATCH] send out the right charset on all requests --- cgi/bugreport.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.39.2