Skip to content

Fix invalid chunk size parse errors for spaced chunked responses#5286

Closed
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/2678-hpe-invalid-chunk-size-but-works-without-any-issue-in-cu
Closed

Fix invalid chunk size parse errors for spaced chunked responses#5286
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/2678-hpe-invalid-chunk-size-but-works-without-any-issue-in-cu

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

  • Enable lenient LLHTTP parsing for whitespace after chunk-size values in the H1 response parser.
  • Add parser regression coverage for chunked responses that include trailing space after the chunk size.

Fixes #2678.

Validation

  • node --test test/parser-issues.js
  • npm run lint -- lib/dispatcher/client-h1.js test/parser-issues.js

@KhafraDev KhafraDev closed this May 12, 2026
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.

HPE_INVALID_CHUNK_SIZE but works without any issue in curl, browser and other runtimes excluding Node.js

2 participants