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

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit aace5d436d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit a47eb5ea54)
This commit is contained in:
Tomas Cohen Arazi 2014-02-06 17:30:24 -03:00 committed by Kyle M Hall
parent 2ba96de44c
commit 2c9f29d164
2 changed files with 8 additions and 2 deletions

View File

@ -60,5 +60,8 @@ unless ($json_text) {
}
}
print $query->header;
print $query->header(
-charset => 'UTF-8',
-type => 'application/json'
);
print $json_text;

View File

@ -69,5 +69,8 @@ unless ($json_text) {
}
}
print $query->header;
print $query->header(
-charset => 'UTF-8',
-type => 'application/json'
);
print $json_text;