1
0
Fork 0
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:
Bradley Schaefer 2013-09-30 14:36:24 -05:00
parent dc545e42f2
commit 2449d392c0

View file

@ -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',