You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aiter_lines() doesn't return full lines that span multiple chunks #1033
https://gist.github.com/scr-oath/aa76d200222a0409d09a0d6feb1a13e2 shows an example setup using cherry.py as server that just outputs two lines - the json is big enough to be sent in two chunks; httpx aiter_lines() gets confused and sends data from the middle of the json line - seems to skip the starting part - which was most likely sent in a chunk without a newline
Activity
scr-oath commentedon Jun 24, 2020
It seems like the LineDecoder needs to remember partial work when called again so that it can prepend the new text with the previous line.
scr-oath commentedon Jun 24, 2020
Here's a really small test case:
Fixes encode#1033 - Ensure that text that spans 3 invocations before …
Fixes #1033 - Ensure that text that spans 3 invocations before newlin…
Fixes for LineDecoding (#1075)