mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[AWS|Glacier] Fix description header not being passed through Fog.escape
This commit is contained in:
parent
ff31140f54
commit
9968d4c160
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ module Fog
|
||||||
'x-amz-content-sha256' => Digest::SHA256.hexdigest(body),
|
'x-amz-content-sha256' => Digest::SHA256.hexdigest(body),
|
||||||
'x-amz-sha256-tree-hash' => Fog::AWS::Glacier::TreeHash.digest(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(
|
request(
|
||||||
:expects => 201,
|
:expects => 201,
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Fog
|
||||||
path = "/#{account_id}/vaults/#{Fog::AWS.escape(name)}/multipart-uploads"
|
path = "/#{account_id}/vaults/#{Fog::AWS.escape(name)}/multipart-uploads"
|
||||||
|
|
||||||
headers = {'x-amz-part-size' => part_size.to_s}
|
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(
|
request(
|
||||||
:expects => 201,
|
:expects => 201,
|
||||||
:headers => headers,
|
:headers => headers,
|
||||||
|
|
Loading…
Add table
Reference in a new issue