Skip to content

Fix regular expression used for non-strict header values - #532

Merged
jonbodner-buf merged 1 commit into
mainfrom
jbodner/fix_header_value_non_strict
Sep 30, 2026
Merged

jonbodner-buf merged 1 commit into
mainfrom
jbodner/fix_header_value_non_strict

Conversation

@jonbodner-buf

Copy link
Copy Markdown
Contributor

The same regular expression (^[^\x00\x0A\x0D]+$) was being used for loose validation of both header names and header values. This is the wrong regex for values; it should be ^[^\x00\x0A\x0D]*$. This PR fixes this issue and adds tests to validate it.

@jonbodner-buf
jonbodner-buf merged commit 7c5cc3f into main Sep 30, 2026
5 checks passed
@jonbodner-buf
jonbodner-buf deleted the jbodner/fix_header_value_non_strict branch September 30, 2026 19:54
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.

2 participants