From 8363e5440ed2cf0f6976ce1e8a965272089ec887 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 8 Sep 2013 06:58:49 +0000 Subject: [PATCH] Bug 10320: (follow-up) handle OverDrive authentication failure more gracefully When calling the overdrive_proxy service, if for some reason the credentials are not accepted by OverDrive, return HTTP status 400 (as intended) rather than an internal server error. Signed-off-by: Galen Charlton --- opac/svc/overdrive_proxy | 1 - 1 file changed, 1 deletion(-) diff --git a/opac/svc/overdrive_proxy b/opac/svc/overdrive_proxy index ed306c5b85..02b6ad0276 100755 --- a/opac/svc/overdrive_proxy +++ b/opac/svc/overdrive_proxy @@ -49,7 +49,6 @@ my $token; if ( !IsOverDriveEnabled() || !( $token = GetOverDriveToken() ) ) { print $query->header( -status => '400 Bad Request', - -content ); print to_json({ -- 2.20.1