Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 5e646b7

Browse files
committed
Only append path if its not empty. Should fix #53
1 parent 45f7318 commit 5e646b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth/consumer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def create_http_request(http_method, path, *arguments)
330330

331331
# if the base site contains a path, add it now
332332
uri = URI.parse(site)
333-
path = uri.path + path if uri.path
333+
path = uri.path + path if uri.path && uri.path != '/'
334334

335335
headers = arguments.first.is_a?(Hash) ? arguments.shift : {}
336336

0 commit comments

Comments
 (0)