Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Fix case-insensitive header matching in body strategy detection master
The determine_body_strategy function only matched two case variants of Transfer-Encoding and Content-Length headers. HTTP headers are case-insensitive per RFC 7230 §3.2, so servers sending differently cased headers (e.g. CONTENT-LENGTH) would cause incorrect body reading strategy (falling through to ReadUntilClose). Extract a header_value() helper that does case-insensitive name matching via eq_ignore_ascii_case. Add tests for mixed-case headers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 Date (Mar 13, 2026, 5:58 AM UTC) Commit b26ceecf b26ceecf7b97398c8a7b77960c049ee0e5dd9606 Parent 5598d2dd 5598d2ddf35a2fdc204194107a0d3579276e3d4b