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

[ibm] Fix form_encode to stringify args (e.g. booleans) to URI.escape

This commit is contained in:
Decklin Foster 2012-02-13 10:35:45 -05:00
parent 70cab59f5f
commit 017795836c

View file

@ -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