From fe202cdc947978f1d19587da7b32656fc65e42c7 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 2 Jun 2008 10:53:38 -0500 Subject: [PATCH] kohabug 2078 - settle on application/xml Content-type for feeds Required by IE6 to at least get a feed to display as XML in the browser instead of being downloaded. Signed-off-by: Joshua Ferraro --- opac/opac-search.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 7c9b684227..099b01066a 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -577,7 +577,8 @@ if ( C4::Context->preference("kohaspsuggest") ) { } # VI. BUILD THE TEMPLATE -my $content_type = $cgi->param('format') =~ /rss/ ? "application/rss+xml" : - $cgi->param('format') =~ /atom/ ? "application/atom+xml" : +# NOTE: not using application/atom+xml or application/rss+xml beccause of Internet Explorer 6; +# see bug 2078. +my $content_type = $cgi->param('format') =~ /rss|atom/ ? "application/xml" : "text/html"; output_html_with_http_headers $cgi, $cookie, $template->output, $content_type; -- 2.39.5