Skip to content

Allow HTAB as whitespace when parsing Content-Type parameter#52

Merged
blakeembrey merged 1 commit intojshttp:masterfrom
akshay-it23:support-htab-whitespace
Jan 27, 2026
Merged

Allow HTAB as whitespace when parsing Content-Type parameter#52
blakeembrey merged 1 commit intojshttp:masterfrom
akshay-it23:support-htab-whitespace

Conversation

@akshay-it23
Copy link
Copy Markdown
Contributor

This PR updates Content-Type parameter parsing to treat HTAB (\t) as valid
whitespace alongside SPACE, aligning behavior with RFC 7230 and RFC 7231.

Fixes #52

@blakeembrey blakeembrey merged commit 2db7a72 into jshttp:master Jan 27, 2026
@bjohansebas
Copy link
Copy Markdown
Member

@blakeembrey @akshay-it23 , tests are missing.

@bjohansebas bjohansebas mentioned this pull request Jan 27, 2026
@blakeembrey blakeembrey mentioned this pull request Jan 27, 2026
@blakeembrey
Copy link
Copy Markdown
Member

@bjohansebas Added tests in #56 but CI is broken still due to #55.

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.

3 participants