mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
Properly normalize the parsed URI upon header initialization.
This commit is contained in:
parent
fc2fddc29b
commit
501f7d8cde
1 changed files with 5 additions and 1 deletions
|
|
@ -24,7 +24,11 @@ module SimpleOAuth
|
|||
|
||||
def initialize(method, url, params, options = {})
|
||||
@method = method.to_s.upcase
|
||||
@uri = URI.parse(url).normalize
|
||||
@uri = URI.parse(url).tap do |uri|
|
||||
uri.scheme = uri.scheme.downcase
|
||||
uri.normalize!
|
||||
uri.fragment = nil
|
||||
end
|
||||
@params = params
|
||||
@options = self.class.default_options.merge(options)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue