From: Eric Wong Date: Thu, 10 Apr 2014 00:23:18 +0000 (+0000) Subject: cgi: do not specify charset in Atom HTTP header X-Git-Tag: v1.0.0~1283 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=44af7563687c794dba2006a774ec525208488755;p=public-inbox.git 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. --- 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},