mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
reordered connection init inn case the uri is not an HTTP uri
This commit is contained in:
parent
a3cfcc71ec
commit
713887cf08
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user