Skip to content

Do not write an empty chunk for an empty file part - #389

Merged
mame merged 1 commit into
ruby:masterfrom
mame:skip-empty-chunk
Dec 1, 2026
Merged

mame merged 1 commit into
ruby:masterfrom
mame:skip-empty-chunk

Conversation

@mame

@mame mame commented Dec 1, 2026

Copy link
Copy Markdown
Member

In a chunked multipart body, a file part of size 0 was written as a chunk of size 0, which marks the end of a chunked body. Skip the chunk when the size is 0.

In a chunked multipart body, a file part of size 0 was written as a
chunk of size 0, which marks the end of a chunked body. Skip the chunk
when the size is 0.

Co-authored-by: Orien Madgwick <vcs@orien.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mame
mame merged commit cb31b2f into ruby:master Dec 1, 2026
26 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.

1 participant