mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-04-27 14:57:45 +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 = {})
|
def initialize(method, url, params, oauth = {})
|
||||||
@method = method.to_s.upcase
|
@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.scheme = uri.scheme.downcase
|
||||||
uri.normalize!
|
uri.normalize!
|
||||||
uri.fragment = nil
|
uri.fragment = nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue