Skip to content

wasi-http: reject a non-ASCII Host header on the p2 path - #14993

Open
xia-chao wants to merge 1 commit into
bytecodealliance:mainfrom
xia-chao:serve-invalid-host-ascii
Open

xia-chao wants to merge 1 commit into
bytecodealliance:mainfrom
xia-chao:serve-invalid-host-ascii

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

on the p2 path, a Host header with a non-ASCII byte currently ends up as a 500. it now answers 400 instead. more info: https://www.rfc-editor.org/rfc/rfc9112.html#section-3.2

RFC 9112 section 3.2 treats an invalid Host field value like a
missing one. The p2 path returned a 500 because the conversion
error carried no response status.
@xia-chao
xia-chao requested review from a team as code owners October 26, 2026 13:13
@xia-chao
xia-chao requested review from cfallin and rvolosatovs and removed request for a team October 26, 2026 13:13

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.

1 participant