@@ -, +, @@ reports svc GET http://localhost:8080/cgi-bin/koha/svc/report?id=1 $ sudo koha-plack --restart kohadev https://koha-community.org) --- opac/svc/report | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- a/opac/svc/report +++ a/opac/svc/report @@ -23,6 +23,7 @@ use Modern::Perl; +use C4::Output qw(output_with_http_headers); use C4::Reports::Guided; use Koha::Reports; use JSON; @@ -85,8 +86,4 @@ unless ($json_text) { } } -print $query->header( - -charset => 'UTF-8', - -type => 'application/json' -); -print $json_text; +output_with_http_headers( $query, undef, $json_text, 'json'); --