]> Sergey Matveev's repositories - public-inbox.git/commitdiff
cgi: do not specify charset in Atom HTTP header
authorEric Wong <e@80x24.org>
Thu, 10 Apr 2014 00:23:18 +0000 (00:23 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Apr 2014 00:27:18 +0000 (00:27 +0000)
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

index 5c21fddaf9a238328f0ab66f5bb4319fd5df4fb7..4e727da8a61fd20df7fd3921388314e15234be86 100755 (executable)
@@ -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},