mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
fixed the condition to check if are inflight incomplete requests for http/1
This commit is contained in:
parent
c411c9e7b4
commit
b7421cc423
@ -26,7 +26,7 @@ module HTTPX
|
||||
def empty?
|
||||
# this means that for every request there's an available
|
||||
# partial response, so there are no in-flight requests waiting.
|
||||
@requests.empty? || @requests.any? { |request| request.response.nil? }
|
||||
@requests.empty? || @requests.all? { |request| !request.response.nil? }
|
||||
end
|
||||
|
||||
def <<(data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user