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:
parent
7bc1077763
commit
8363e5440e
1 changed files with 0 additions and 1 deletions
|
@ -49,7 +49,6 @@ my $token;
|
|||
if ( !IsOverDriveEnabled() || !( $token = GetOverDriveToken() ) ) {
|
||||
print $query->header(
|
||||
-status => '400 Bad Request',
|
||||
-content
|
||||
);
|
||||
|
||||
print to_json({
|
||||
|
|
Loading…
Reference in a new issue