Skip to content

socket.headers.canonic: use dynamic canonization instead of limited set of predefined values - #442

Open
johnd0e wants to merge 2 commits into
lunarmodules:masterfrom
johnd0e:normalize-headers-titles
Open

socket.headers.canonic: use dynamic canonization instead of limited set of predefined values#442
johnd0e wants to merge 2 commits into
lunarmodules:masterfrom
johnd0e:normalize-headers-titles

Conversation

@johnd0e

@johnd0e johnd0e commented Oct 20, 2024

Copy link
Copy Markdown

Fix #440

@johnd0e

johnd0e commented Oct 20, 2024

Copy link
Copy Markdown
Author

Note: I would rather use "%f[^-]%l", but it doesn't match the beginning of the string.

To be even perfecter we could include other theoretically possible chars besides %w, but the RFC is not clear for me here https://www.rfc-editor.org/rfc/rfc7230#section-3.2

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Canonic header field capitalization does not work with all existing headers titles out of the box

1 participant