Skip to content

Allow obs-text in header comments - #9905

Open
joshbarros wants to merge 1 commit into
lysine-dev:mainfrom
joshbarros:fix/9871-header-comment-obs-text
Open

joshbarros wants to merge 1 commit into
lysine-dev:mainfrom
joshbarros:fix/9871-header-comment-obs-text

Conversation

@joshbarros

Copy link
Copy Markdown

Fixes #9871.

RFC 9110 allows obs-text bytes in header comments. Accept them only while inside balanced comments, keep control characters rejected even when escaped, and count header bytes as UTF-8. Added tests for the allowed User-Agent and rejected escaped control/invalid characters.

Local CodeRabbit: 0 findings.

@JakeWharton

Copy link
Copy Markdown
Collaborator

Can you remove the commit from the other PR?

RFC 9110 permits observed text bytes in comments. Accept them only inside balanced comments, keep control characters rejected even when escaped, and count header bytes as UTF-8.

Fixes lysine-dev#9871
@joshbarros
joshbarros force-pushed the fix/9871-header-comment-obs-text branch from 1a6d1bd to ff97aef Compare December 1, 2026 10:52
@joshbarros

Copy link
Copy Markdown
Author

Rebased onto main and removed the Locale.US commit; #9905 now contains only the header-comment change.

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

Development

Successfully merging this pull request may close these issues.

User-Agent does not accept non-ASCII characters

2 participants