lib/simple_oauth/header.rb in simple_oauth-0.1.5 vs lib/simple_oauth/header.rb in simple_oauth-0.1.6
- old
+ new
@@ -28,10 +28,10 @@
attr_reader :method, :params, :options
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
end
@params = params