mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-12 00:01:58 -04:00
http2: fixed response body buffering, as there was a confusion between chunk and next_chunk
This commit is contained in:
parent
4fa3b9d1a5
commit
db7463d8fb
@ -113,11 +113,11 @@ module HTTPX
|
||||
while chunk
|
||||
next_chunk = request.drain_body
|
||||
stream.data(chunk, end_stream: !next_chunk)
|
||||
chunk = next_chunk
|
||||
if chunk && @buffer.full?
|
||||
@drains[request] = chunk
|
||||
if next_chunk && @buffer.full?
|
||||
@drains[request] = next_chunk
|
||||
throw(:buffer_full)
|
||||
end
|
||||
chunk = next_chunk
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user