Skip to content

Commit

Permalink
Fixing possible bug from array key value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Kirk committed Jun 6, 2013
1 parent fe51c7f commit 4e010db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linked_in/helpers/request.rb
Expand Up @@ -64,7 +64,7 @@ def raise_errors(response)
def to_query(params)
params.map { |k, v|
if v.class == Array
build_query(v.map { |x| [k, x] })
to_query(v.map { |x| [k, x] })
else
v.nil? ? escape(k) : "#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"
end
Expand Down

0 comments on commit 4e010db

Please sign in to comment.