Permalink
Browse files

Fix multiple params on Get request

  • Loading branch information...
Roger Leite
Roger Leite committed Jul 10, 2012
1 parent 7bda9f4 commit 3812678ed57bae400a74fb947ac242a0f3c6129a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/restfolia/entry_point.rb
@@ -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)

0 comments on commit 3812678

Please sign in to comment.