reordered connection init inn case the uri is not an HTTP uri

This commit is contained in:
HoneyryderChuck 2024-05-13 18:02:41 +01:00
parent a3cfcc71ec
commit 713887cf08

View File

@ -48,10 +48,10 @@ module HTTPX
attr_accessor :family
def initialize(uri, options)
@origins = [uri.origin]
@origin = Utils.to_uri(uri.origin)
@options = Options.new(options)
@type = initialize_type(uri, @options)
@origins = [uri.origin]
@origin = Utils.to_uri(uri.origin)
@window_size = @options.window_size
@read_buffer = Buffer.new(@options.buffer_size)
@write_buffer = Buffer.new(@options.buffer_size)