Skip to content

Commit

Permalink
Remove deprecation warning when accessing headers in s3_file cookbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
workeitel committed Sep 7, 2015
1 parent 69efc96 commit ff8f5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3_file/libraries/s3_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def self.with_region_detect(region = nil)
yield(region)
rescue client::BadRequest => e
if region.nil?
region = e.response["x-amz-region"]
region = e.response.headers[:x_amz_region]
raise if region.nil?
yield(region)
else
Expand Down

0 comments on commit ff8f5e1

Please sign in to comment.