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 <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2013-09-08 06:58:49 +00:00
parent 7bc1077763
commit 8363e5440e

View file

@ -49,7 +49,6 @@ my $token;
if ( !IsOverDriveEnabled() || !( $token = GetOverDriveToken() ) ) {
print $query->header(
-status => '400 Bad Request',
-content
);
print to_json({