cloudflare / cloudflare/workerd
If pedantic_wpt is set, reject invalid header names instead of passing them through.
- Lingua principale
- C++
- Stelle
- 8.7k
- Fork
- 742
- Merge medio
- 2g 20h
- PR unite (30g)
- 174
Descrizione
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...
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando il percorso di validazione della classe Headers e la gestione di pedantic_wpt per i nomi degli header non validi. Confronta il comportamento attuale degli avvisi con la specifica Fetch e verifica che i nomi non validi vengano rifiutati in modalità pedantic_wpt, mentre il problema esistente del passaggio diretto attraverso il proxy venga risolto dal comportamento finale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100