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

Don't delete the options if they were never there!

This commit is contained in:
Sean Handley 2013-06-07 14:31:47 +01:00
parent 888bcc5d81
commit 700a33069a

View file

@ -66,8 +66,10 @@ module Fog
"Accept" => "application/json"
}
)
params[:body] = encode_pairs(params[:options]) unless params[:options].nil?
unless params[:options].nil?
params[:body] = encode_pairs(params[:options])
params.delete(:options)
end
response = @connection.request(params)
raise_if_error!(response)