From 6e7192f0d7a465fda091803baecf52ab88f550d4 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) Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Passes tests and QA script, no regressions found. Signed-off-by: Tomas Cohen Arazi --- 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 33c9cde9e2..611c503c9e 100755 --- a/opac/svc/shelfbrowser.pl +++ b/opac/svc/shelfbrowser.pl @@ -38,4 +38,4 @@ if (C4::Context->preference("OPACShelfBrowser")) { } } -print $template->output; +output_html_with_http_headers $cgi, $cookie, $template->output; -- 2.39.5