1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1205 from fcheung/escape-glacier-headers

[AWS|Glacier] Fix description header not being passed through Fog.escape
This commit is contained in:
Wesley Beary 2012-10-15 14:49:38 -07:00
commit 2e0d13d4be
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ module Fog
'x-amz-content-sha256' => Digest::SHA256.hexdigest(body),
'x-amz-sha256-tree-hash' => Fog::AWS::Glacier::TreeHash.digest(body)
}
headers['x-amz-archive-description'] = options['description'] if options['description']
headers['x-amz-archive-description'] = Fog::AWS.escape(options['description']) if options['description']
request(
:expects => 201,

View file

@ -23,7 +23,7 @@ module Fog
path = "/#{account_id}/vaults/#{Fog::AWS.escape(name)}/multipart-uploads"
headers = {'x-amz-part-size' => part_size.to_s}
headers['x-amz-archive-description'] = options['description'] if options['description']
headers['x-amz-archive-description'] = Fog::AWS.escape(options['description']) if options['description']
request(
:expects => 201,
:headers => headers,