Skip to content

Commit

Permalink
change default query to '' for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Nov 29, 2010
1 parent e45e9a7 commit 146b531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/connection.rb
Expand Up @@ -20,7 +20,7 @@ def request(params, &block)
params[:path] = '/' << params[:path]
end
request = params[:method].to_s.upcase << ' ' << params[:path] << '?'
query = (params[:query] || @connection[:query] || {})
query = (params[:query] || @connection[:query] || '')
case query
when String
request << query
Expand Down

0 comments on commit 146b531

Please sign in to comment.