Permalink
Browse files

Only append path if its not empty. Should fix #53

  • Loading branch information...
1 parent 45f7318 commit 5e646b70e4a662e1958dfd3fc37f3b9bcc75d183 @quirkey quirkey committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/oauth/consumer.rb
@@ -330,7 +330,7 @@ def create_http_request(http_method, path, *arguments)
# if the base site contains a path, add it now
uri = URI.parse(site)
- path = uri.path + path if uri.path
+ path = uri.path + path if uri.path && uri.path != '/'
headers = arguments.first.is_a?(Hash) ? arguments.shift : {}

0 comments on commit 5e646b7

Please sign in to comment.