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

Delete invalid connection keys before request is made

This commit is contained in:
Toby Hede 2013-10-11 16:28:06 +11:00
parent 71086736fd
commit 836bbcab73

View file

@ -155,8 +155,10 @@ module Fog
signature = Base64.encode64( digest ).chomp()
params[:headers]["x-emc-signature"] = signature
parse = params[:parse]
params.delete(:host) #invalid excon request parameter
parse = params.delete(:parse)
begin
response = @connection.request(params, &block)
rescue Excon::Errors::HTTPStatusError => error