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);
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};
$path = "/test/blahblah%40example.com/t.atom";
$res = cgi_run($path);
like($res->{head}, qr/^Status: 200 /, "atom returned 200");
- like($res->{head}, qr!^Content-Type: application/xml!m,
+ like($res->{head}, qr!^Content-Type: application/atom\+xml!m,
"search returned atom");
my $p = XML::Feed->parse(\($res->{body}));
is($p->format, "Atom", "parsed atom feed");