Skip to content

fix: allow tabs around Content-Length#810

Merged
ShogunPanda merged 1 commit intonodejs:mainfrom
islandryu:fix/content-length-tab-whitespace
Mar 30, 2026
Merged

fix: allow tabs around Content-Length#810
ShogunPanda merged 1 commit intonodejs:mainfrom
islandryu:fix/content-length-tab-whitespace

Conversation

@islandryu
Copy link
Copy Markdown
Member

Fixes: nodejs/node#62192

The header-field allows optional whitespace (OWS) before and after the field-value.
OWS includes both spaces and horizontal tabs (HTAB).

header-field   = field-name ":" OWS field-value OWS
OWS = *( SP / HTAB )

https://datatracker.ietf.org/doc/html/rfc7230

@ShogunPanda ShogunPanda merged commit 312b74f into nodejs:main Mar 30, 2026
7 checks passed
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.

Trailing tab not stripped from Content-Length

2 participants