0
Fork 0
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:
Luna Schwalbe 2025-12-07 04:28:01 +01:00 • committed by Andrew Kelley
commit 0bbf0461d9
2 changed files with 33 additions and 9 deletions