lib/fog/bluebox/requests/compute/create_block.rb in fog-1.7.0 vs lib/fog/bluebox/requests/compute/create_block.rb in fog-1.8.0
- old
+ new
@@ -28,17 +28,15 @@
'product' => product_id,
'template' => template_id,
'location' => location_id
}
- body = URI.encode options.map {|k,v| "#{k}=#{v}"}.join('&')
-
request(
:expects => 200,
:method => 'POST',
:path => '/api/blocks.json',
:query => query,
- :body => URI.encode(body)
+ :body => options.map {|k,v| "#{CGI.escape(k)}=#{CGI.escape(v)}"}.join('&')
)
end
end
end