Bugzilla – Attachment 25191 Details for
Bug 11704
Wrong headers in {opac|intranet}/svc/report
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11704: Make */svc/report print the correct headers
Bug-11704-Make-svcreport-print-the-correct-headers.patch (text/plain), 1.30 KB, created by
Jonathan Druart
on 2014-02-11 09:10:47 UTC
(
hide
)
Description:
Bug 11704: Make */svc/report print the correct headers
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-02-11 09:10:47 UTC
Size:
1.30 KB
patch
obsolete
>From 2528433d2efdd6527aa0bb356d70cda154568050 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Thu, 6 Feb 2014 17:30:24 -0300 >Subject: [PATCH] Bug 11704: Make */svc/report print the correct headers > >To test: >1 - Go through the first comments instructions to reproduce > and verify the bug is present (OPAC and STAFF) >2 - Apply the patch >3 - Repeat step 1 and notice > * characters are not broken anymore > * the header is correct >4 - Sign off > >Regards >To+ > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > opac/svc/report | 5 ++++- > svc/report | 5 ++++- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/opac/svc/report b/opac/svc/report >index 194707b..57ca797 100755 >--- a/opac/svc/report >+++ b/opac/svc/report >@@ -67,5 +67,8 @@ unless ($json_text) { > } > } > >-print $query->header; >+print $query->header( >+ -charset => 'UTF-8', >+ -type => 'application/json' >+); > print $json_text; >diff --git a/svc/report b/svc/report >index 3ae39a2..0cff7dc 100755 >--- a/svc/report >+++ b/svc/report >@@ -77,5 +77,8 @@ unless ($json_text) { > } > } > >-print $query->header; >+print $query->header( >+ -charset => 'UTF-8', >+ -type => 'application/json' >+); > print $json_text; >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11704
:
25107
|
25108
|
25109
|
25185
| 25191