lib/httpx/request.rb in httpx-0.14.5 vs lib/httpx/request.rb in httpx-0.15.0
- old
+ new
@@ -43,10 +43,10 @@
def_delegator :@body, :chunk!
def initialize(verb, uri, options = {})
@verb = verb.to_s.downcase.to_sym
@options = Options.new(options)
- @uri = Utils.uri(uri)
+ @uri = Utils.to_uri(uri)
if @uri.relative?
raise(Error, "invalid URI: #{@uri}") unless @options.origin
@uri = @options.origin.merge(@uri)
end