Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

passing array of params in :parameters parameter

  • Loading branch information...
commit 003057cf471f4e7adc170c954e199c8e2d8ab236 1 parent f634146
@mustafaturan mustafaturan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http_request.rb
View
2  lib/http_request.rb
@@ -303,7 +303,7 @@ def parse_parameters
"#{CGI.escape(k.to_s)}=#{CGI.escape(v.to_s)}"
else
prefix = "#{k}[]"
- v.collect { |value| "#{CGI.escape(k.to_s)}=#{CGI.escape(value.to_s)}" }.join('&')
+ v.collect { |value| "#{CGI.escape(prefix)}=#{CGI.escape(value.to_s)}" }.join('&')
end
}.join('&')
end
Please sign in to comment.
Something went wrong with that request. Please try again.