Skip to content

Commit

Permalink
Fixed a silly one
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank Jain committed Aug 18, 2011
1 parent 72e0e4d commit 571a46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge.rb
Expand Up @@ -9,7 +9,7 @@
get '/' do
headers = params['h'] ? JSON.parse(params['h']) : {}
url = URI.parse(params['u'])
path = url.path == "" ? "/" : url.path + "?" + url.query # required when url.query is present in get request
path = url.path == "" ? "/" : url.path + "?" + (url.query||"") # required when url.query is present in get request

if params['m'] == 'get'
request = Net::HTTP::Get.new(path)
Expand Down

0 comments on commit 571a46f

Please sign in to comment.