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:
parent
9640d7a9db
commit
c3131a4694
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue