Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix multiple params on Get request

  • Loading branch information...
commit 3812678ed57bae400a74fb947ac242a0f3c6129a 1 parent 7bda9f4
Roger Leite authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/restfolia/entry_point.rb
2  lib/restfolia/entry_point.rb
View
@@ -63,7 +63,7 @@ def get(params = nil)
query = if params && params.is_a?(String)
params
elsif params && params.is_a?(Hash)
- params.map { |k, v| "#{k}=#{URI.encode(v)}" }.join
+ params.map { |k, v| "#{k}=#{URI.encode(v)}" }.join('&')
end
args = self.configuration.merge(:query => query)
Please sign in to comment.
Something went wrong with that request. Please try again.