Bug 36418: opac/svc/club: switch content-type to application/json
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
17466e99fe
commit
70abef49cd
|
|
@ -42,6 +42,6 @@ my $enrollment = Koha::Club::Enrollments->find($id);
|
|||
$enrollment->cancel();
|
||||
|
||||
binmode STDOUT, ':encoding(UTF-8)';
|
||||
print $cgi->header( -type => 'text/plain', -charset => 'UTF-8' );
|
||||
print $cgi->header( -type => 'application/json', -charset => 'UTF-8' );
|
||||
|
||||
print to_json( { success => $enrollment ? 1 : 0 } );
|
||||
|
|
|
|||
|
|
@ -72,6 +72,6 @@ if ( $borrowernumber && $id ) {
|
|||
}
|
||||
|
||||
binmode STDOUT, ':encoding(UTF-8)';
|
||||
print $cgi->header( -type => 'text/plain', -charset => 'UTF-8' );
|
||||
print $cgi->header( -type => 'application/json', -charset => 'UTF-8' );
|
||||
|
||||
print to_json( { success => $enrollment ? 1 : 0 } );
|
||||
|
|
|
|||
Loading…
Reference in New Issue