mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Another attempt to solve content-encoding header issues
identity should not be used as a content encoding
This commit is contained in:
parent
d3b3f68335
commit
d2287ba09c
1 changed files with 3 additions and 3 deletions
|
@ -562,10 +562,10 @@ module Fog
|
|||
params[:headers]['x-amz-content-sha256'] = 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD'
|
||||
params[:headers]['x-amz-decoded-content-length'] = params[:headers].delete 'Content-Length'
|
||||
|
||||
if params[:headers]['Content-Encoding']
|
||||
encoding = "aws-chunked, #{params[:headers]['Content-Encoding']}"
|
||||
if params[:headers]['Content-Encoding'] && params[:headers]['Content-Encoding'].to_s.length > 0
|
||||
encoding = "aws-chunked,#{params[:headers]['Content-Encoding']}"
|
||||
else
|
||||
encoding = "aws-chunked, identity"
|
||||
encoding = "aws-chunked"
|
||||
end
|
||||
|
||||
params[:headers]['Content-Encoding'] = encoding
|
||||
|
|
Loading…
Reference in a new issue