]> git.koha-community.org Git - koha.git/commit
kohabug 2078 - send correct Content-type for search feeds
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 2 Jun 2008 14:05:04 +0000 (09:05 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 3 Jun 2008 10:59:54 +0000 (05:59 -0500)
commit8fc6b927dfae962f2e5df2f4928bb9c9a12e597d
tree81a83cbd23e6d20cc822f554fed49fb539be2797
parent1a41d12a96d5bd54a722029e102c6a507eb31a26
kohabug 2078 - send correct Content-type for search feeds

OPAC search RSS and ATOM feeds now have the correct
Content-type sent - "application/rss+xml" and "application/atom+xml",
respectively.

As part of this patch, added an optional fourth parameter
to C4::Output::output_html_with_http_headers to specify
the content type.  If that parameter is now supplied, or if
the value of the parameter does not contain at least a "/",
the default type of "text/html" is returned.

No documentation changes.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Output.pm
opac/opac-search.pl