mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
std.http: reliably update reader state
Content length based reading would only set the reader state to `ready` once it returned EOF, but wrapping readers (such as decompressors) may stop reading from the underlying source without receiving EOF. In such cases the http reader state would stay set to `body_remaining_content_length`, even though the entire body had been read. Fixes #30060 Co-authored-by: Andrew Kelley <andre@ziglang.org>
This commit is contained in:
parent
29225ae11b
commit
0bbf0461d9
2 changed files with 33 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue