From 44af7563687c794dba2006a774ec525208488755 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Apr 2014 00:23:18 +0000 Subject: cgi: do not specify charset in Atom HTTP header The feed itself already specifies it in XML, and we risk confusing clients if XML::Atom::SimpleFeed changes in the future. This also increases consistency for CGI vs static-file serving. --- public-inbox-cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public-inbox-cgi b/public-inbox-cgi index 5c21fdda..4e727da8 100755 --- a/public-inbox-cgi +++ b/public-inbox-cgi @@ -104,8 +104,7 @@ sub invalid_list_mid { sub get_atom { my ($ctx, $cgi, $top) = @_; require PublicInbox::Feed; - [ '200 OK', - { 'Content-Type' => 'application/xml; charset=us-ascii' }, + [ '200 OK', { 'Content-Type' => 'application/xml' }, PublicInbox::Feed->generate({ git_dir => $ctx->{git_dir}, listname => $ctx->{listname}, -- cgit v1.2.3-24-ge0c7