public
Rubygem
Description: Makes http fun! Also, makes consuming restful web services dead easy.
Homepage:
Clone URL: git://github.com/jnunemaker/httparty.git
Click here to lend your support to: httparty and make a donation at www.pledgie.com !
Added uri encode to Hash#to_params to ensure param values are properly encoded
jnunemaker (author)
Sat Dec 06 20:49:10 -0800 2008
commit  0b5579783ad7865b88337fc50ef72b01fa525bf9
tree    73d335c8c8fbcbad884e272729336c7cac84533c
parent  411340826ba683397df84e611956b34eae398d93
...
322
323
324
325
 
326
327
328
...
322
323
324
 
325
326
327
328
0
@@ -322,7 +322,7 @@ class Hash
0
     elsif value.is_a?(Hash)
0
       stack << [key,value]
0
     else
0
-      param << "#{key}=#{value}&"
0
+      param << "#{key}=#{URI.encode(value)}&"
0
     end
0
 
0
     stack.each do |parent, hash|

Comments