Skip to content

feat: allow space before first header name in responses (#3285) - #4234

Open
manish-9245 wants to merge 1 commit into
hyperium:masterfrom
manish-9245:fix/3285-allow-space-before-first-header
Open

manish-9245 wants to merge 1 commit into
hyperium:masterfrom
manish-9245:fix/3285-allow-space-before-first-header

Conversation

@manish-9245

@manish-9245 manish-9245 commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes #3285. Exposes httparse allow_space_before_first_header_name via client Builder as allow_space_before_first_header_name_in_responses (default false), for compatibility with servers/browsers that accept leading whitespace before the first response header. Wires through existing h1 ParserConfig plumbing. Tests: cargo build --features full (ok); cargo test --features full --lib (129 passed, 0 failed); cargo test --features full (lib 129, client 70, server 98, integration 14, doc 14 — all ok); cargo fmt --check (clean).

Expose httparse allow_space_before_first_header_name as a client
builder option, so users can opt into accepting leading whitespace
before the first response header for compatibility with browsers.

Fixes hyperium#3285.
Comment thread src/proto/h1/role.rs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to allow leading whitespace in first HTTP/1 response header

2 participants