lib/httpx/request.rb in httpx-1.3.1 vs lib/httpx/request.rb in httpx-1.3.2
- old
+ new
@@ -81,10 +81,10 @@
@body = options.request_body_class.new(@headers, options, **params)
@options = @body.options
- if @uri.relative?
+ if @uri.relative? || @uri.host.nil?
origin = @options.origin
raise(Error, "invalid URI: #{@uri}") unless origin
base_path = @options.base_path