Skip to content

fix(http): reject incomplete chunked transfers#9

Merged
Sunrisepeak merged 2 commits into
masterfrom
fix/chunked-eof-metadata
Jul 11, 2026
Merged

fix(http): reject incomplete chunked transfers#9
Sunrisepeak merged 2 commits into
masterfrom
fix/chunked-eof-metadata

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Summary

  • distinguish a complete CRLF line from EOF/timeout in chunked downloads
  • reject empty, malformed, and overflowing chunk-size lines
  • require chunk delimiters and the terminal trailer terminator
  • expose expected byte count, final URL, ETag, and Last-Modified in download results
  • bump tinyhttps to 0.2.9 and refresh the mcpp bootstrap/lock configuration

Test plan

  • TDD RED: missing parser and metadata contract
  • mcpp test — 2 test binaries passed; 12 tests passed
  • existing real HTTPS download/redirect/progress tests passed
  • git diff --check

Refs openxlings/xlings#356

@Sunrisepeak Sunrisepeak marked this pull request as ready for review July 11, 2026 18:16
@Sunrisepeak Sunrisepeak merged commit 965d805 into master Jul 11, 2026
1 check passed
@Sunrisepeak Sunrisepeak deleted the fix/chunked-eof-metadata branch July 11, 2026 18:16
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.

1 participant