mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Convert URL to string (in case it's already a URI object) before parsing
This commit is contained in:
parent
878b368101
commit
302558c0b4
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ module SimpleOAuth
|
|||
|
||||
def initialize(method, url, params, oauth = {})
|
||||
@method = method.to_s.upcase
|
||||
@uri = URI.parse(url).tap do |uri|
|
||||
@uri = URI.parse(url.to_s).tap do |uri|
|
||||
uri.scheme = uri.scheme.downcase
|
||||
uri.normalize!
|
||||
uri.fragment = nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue