cloudflare / cloudflare/workerd

If pedantic_wpt is set, reject invalid header names instead of passing them through.

Open
#4,792 0 comments 0 reactions 0 assignees View on GitHub
wpt-conformance
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

We currently give a warning for invalid or problematic characters in header names:
- This string contains 8-bit characters in the range 0x80 - 0xFF.
- Per the Fetch specification, the Headers class may only accept header names and values which contain 8-bit characters. That is, they must not contain any Unicode code points greater than 0xFF.

In `pedantic_wpt` mode we have to throw on these instead. However this could be really annoying for anyone implementing a proxy, who is just trying to pass through what the client gave them. We might need to create a `very_pedantic_wpt` flag too...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.