Bugzilla – Attachment 149634 Details for
Bug 33481
EBSCO ws return 415: Content type 'application/octet-stream' not supported
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33481: Pass content-type when requesting EBSCO's webservice
Bug-33481-Pass-content-type-when-requesting-EBSCOs.patch (text/plain), 1.01 KB, created by
Marcel de Rooy
on 2023-04-14 06:22:32 UTC
(
hide
)
Description:
Bug 33481: Pass content-type when requesting EBSCO's webservice
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-04-14 06:22:32 UTC
Size:
1.01 KB
patch
obsolete
>From 61093ba2277db7adcc734b0e60b075da088eafbe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Apr 2023 13:37:14 +0200 >Subject: [PATCH] Bug 33481: Pass content-type when requesting EBSCO's > webservice >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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.30.2
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 33481
:
149434
|
149436
| 149634