mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
fixed bad API call and when coalesced is thrown after DNS lookup
This commit is contained in:
parent
895ca720cc
commit
43fead1ab0
@ -111,8 +111,8 @@ module HTTPX
|
||||
def merge(connection)
|
||||
@origins += connection.instance_variable_get(:@origins)
|
||||
pending = connection.instance_variable_get(:@pending)
|
||||
pending.each do |req, args|
|
||||
send(req, args)
|
||||
pending.each do |req|
|
||||
send(req)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -32,7 +32,7 @@ module HTTPX
|
||||
end
|
||||
log(label: "resolver: ") { "answer #{connection.origin.host}: #{addresses.inspect}" }
|
||||
connection.addresses = addresses
|
||||
emit(:resolve, connection)
|
||||
catch(:coalesced) { emit(:resolve, connection) }
|
||||
end
|
||||
|
||||
def early_resolve(connection, hostname: connection.origin.host)
|
||||
|
Loading…
x
Reference in New Issue
Block a user