Skip to content

Commit

Permalink
S3: deal with bucket redirects a bit more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidb committed May 2, 2015
1 parent 9aeeec5 commit e3cc259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Aws/S3/Core.hs
Expand Up @@ -245,7 +245,7 @@ s3BinaryResponseConsumer inner metadata resp = do
let m = S3Metadata { s3MAmzId2 = amzId2, s3MRequestId = requestId }
liftIO $ tellMetadataRef metadata m

if HTTP.responseStatus resp >= HTTP.status400
if HTTP.responseStatus resp >= HTTP.status300
then s3ErrorResponseConsumer resp
else inner resp

Expand Down

0 comments on commit e3cc259

Please sign in to comment.