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

fix host header with another port on s3

This commit is contained in:
Rodrigo de Almeida Pereira 2016-12-05 10:10:00 -02:00
parent 9640d7a9db
commit c3131a4694

View file

@ -190,6 +190,7 @@ module Fog
params = request_params(params)
params[:headers][:host] = params[:host]
params[:headers][:host] += ":#{params[:port]}" if params.fetch(:port, nil)
signature_query_params = @signer.signature_parameters(params, now, "UNSIGNED-PAYLOAD")
params[:query] = (params[:query] || {}).merge(signature_query_params)