1
0
Fork 0
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:
Frederick Cheung 2015-05-07 08:19:06 +01:00
parent d3b3f68335
commit d2287ba09c

View file

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