Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby: convert argument name and values to strings

  • Loading branch information...
commit 8887c6fc706546ffa904228ff694026bd79cba45 1 parent 6fd8829
@ianloic ianloic authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  ruby/om.rb
View
3  ruby/om.rb
@@ -53,6 +53,9 @@ def om(consumer, url, post_params, token=nil, method='POST', realm=nil, timestam
else
params = post_params.collect { |x| x }
end
+
+ # we want those pairs to be strings
+ params = params.collect { |k,v| [k.to_s, v.to_s]}
# normalize the URL
url = URI.parse(url)
Please sign in to comment.
Something went wrong with that request. Please try again.