From 017795836c73851021d22eaf41cc700fbf308a48 Mon Sep 17 00:00:00 2001 From: Decklin Foster Date: Mon, 13 Feb 2012 10:35:45 -0500 Subject: [PATCH] [ibm] Fix form_encode to stringify args (e.g. booleans) to URI.escape --- lib/fog/ibm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/ibm.rb b/lib/fog/ibm.rb index 1d7dc90c1..d6f36c7ee 100644 --- a/lib/fog/ibm.rb +++ b/lib/fog/ibm.rb @@ -43,7 +43,7 @@ module Fog end def form_encode(params) - params.reject {|k, v| v.nil? }.map {|pair| pair.map {|x| URI.escape(x) }.join('=') }.join('&') + params.reject {|k, v| v.nil? }.map {|pair| pair.map {|x| URI.escape(x.to_s) }.join('=') }.join('&') end end