-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Aws::S3::Client#head_bucket with improper region.
Resolved the following issues: s3 = Aws::S3::Client.new(region: 'us-west-1') s3.head_bucket(bucket: 'us-west-2-bucket') #=> raises Aws::S3::Errors::BadRequest (without a message) If the bucket exists, but you are configured for the incorrect region, the SDK fails to extract the actual bucket region from the 400 response. This results in an empty error message. Added support for loading the bucket region from the "x-amz-bucket-region" header, which is necessary for all HEAD responses. Fixes #1161
- Loading branch information
1 parent
0960da2
commit fd52fa5
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters