mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fixes SignatureDoesNotMatch error
POST object restore was using the bucket_name as a host prefix rather than in the canonical path as AWS was expecting.
This commit is contained in:
parent
dc545e42f2
commit
2449d392c0
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module Fog
|
|||
|
||||
request({
|
||||
:headers => headers,
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:bucket_name => bucket_name,
|
||||
:expects => [200, 202, 409],
|
||||
:body => data,
|
||||
:method => 'POST',
|
||||
|
|
Loading…
Reference in a new issue