Bug 10320: (follow-up) handle OverDrive authentication failure more gracefully
authorGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 06:58:49 +0000 (06:58 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 07:04:50 +0000 (07:04 +0000)
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>
opac/svc/overdrive_proxy

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