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:
parent
888bcc5d81
commit
700a33069a
1 changed files with 4 additions and 2 deletions
|
@ -66,8 +66,10 @@ module Fog
|
|||
"Accept" => "application/json"
|
||||
}
|
||||
)
|
||||
params[:body] = encode_pairs(params[:options]) unless params[:options].nil?
|
||||
params.delete(:options)
|
||||
unless params[:options].nil?
|
||||
params[:body] = encode_pairs(params[:options])
|
||||
params.delete(:options)
|
||||
end
|
||||
response = @connection.request(params)
|
||||
|
||||
raise_if_error!(response)
|
||||
|
|
Loading…
Reference in a new issue