From dbc0e7f27d0b2830b74270db5cbae31409d7f985 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Sep 2014 16:09:22 +0200 Subject: [PATCH] Bug 12886: shelfbrowser script should write headers opac/svc/shelfbrowser.pl does not write http headers. On a production server, this patch resolves a server internal error (500): Bad header=
I did not reproduce on my local instance, but this should be fixed. Test plan: Verify there is no regression on browsing a shelf (with "en" and translated templates) --- opac/svc/shelfbrowser.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/svc/shelfbrowser.pl b/opac/svc/shelfbrowser.pl index 33c9cde..a49bc319 100755 --- a/opac/svc/shelfbrowser.pl +++ b/opac/svc/shelfbrowser.pl @@ -38,4 +38,4 @@ if (C4::Context->preference("OPACShelfBrowser")) { } } -print $template->output; +print output_html_with_http_headers $cgi, $cookie, $template->output; -- 2.1.0