about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-03 08:27:42 +0000
committerEric Wong <e@80x24.org>2015-09-03 08:27:42 +0000
commit4c1a95b7860f16975aa055e2c11481e791b513d5 (patch)
tree35ad97fc774340f4c6b50040229bfd1c9be6308b /lib
parent83fa9f483121526fceb0a40b715aaf6025b3e7fa (diff)
downloadpublic-inbox-4c1a95b7860f16975aa055e2c11481e791b513d5.tar.gz
This is the correct Content-Type for Atom feeds, especially
since we updated to use ".atom" as the suffix.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Feed.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 2284f239..75fecf5b 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -60,7 +60,7 @@ sub atom_header {
 
 sub emit_atom {
         my ($cb, $ctx) = @_;
-        my $fh = $cb->([ 200, ['Content-Type' => 'application/xml']]);
+        my $fh = $cb->([ 200, ['Content-Type' => 'application/atom+xml']]);
         my $max = $ctx->{max} || MAX_PER_PAGE;
         my $feed_opts = get_feedopts($ctx);
         my $x = atom_header($feed_opts);
@@ -97,7 +97,7 @@ sub emit_atom_thread {
         my ($cb, $ctx) = @_;
         my $res = $ctx->{srch}->get_thread($ctx->{mid});
         return _no_thread($cb) unless $res->{total};
-        my $fh = $cb->([200, ['Content-Type' => 'application/xml']]);
+        my $fh = $cb->([200, ['Content-Type' => 'application/atom+xml']]);
         my $feed_opts = get_feedopts($ctx);
 
         my $html_url = $feed_opts->{atomurl} = $ctx->{self_url};