From d1b4481fe474053df47d6779727f95a553631856 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Apr 2023 13:37:14 +0200 Subject: [PATCH] Bug 33481: Pass content-type when requesting EBSCO's webservice Signed-off-by: Pedro Amorim Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/ERM/Providers/EBSCO.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/ERM/Providers/EBSCO.pm b/Koha/ERM/Providers/EBSCO.pm index 38217b5fa2..df2a525ba6 100644 --- a/Koha/ERM/Providers/EBSCO.pm +++ b/Koha/ERM/Providers/EBSCO.pm @@ -254,6 +254,7 @@ sub request { undef, ( $payload ? encode_json($payload) : undef ) ); $request->header( 'x-api-key' => $config->{api_key} ); + $request->header( 'content-type' => 'application/json; charset=UTF-8' ); my $ua = LWP::UserAgent->new; my $response = $ua->simple_request($request); if ( $response->code >= 400 ) { -- 2.39.5