Skip to content

Improvements for content-length handling and chunked encoding#16

Merged
szeka9 merged 2 commits into
mainfrom
development
Jun 9, 2026
Merged

Improvements for content-length handling and chunked encoding#16
szeka9 merged 2 commits into
mainfrom
development

Conversation

@szeka9

@szeka9 szeka9 commented Jun 9, 2026

Copy link
Copy Markdown
Owner
  • ignore content-length header when chunked encoding is set to improve compatibility with clients
  • send chunked multipart responses to indicate response framing (due to lacking content-length header)

szeka9 added 2 commits June 9, 2026 23:06
Ignore content length instead of rejecting
requests containing both a content-length
header and chunked transfer-encoding.
The content length is not available in advance
when setting multipart response headers. Because of that,
some clients hang after receiving multipart responses.

Instead, use chunked encoding so that clients are
aware of the response framing.

Refactor multipart response generator and
apply buffer-related error handling to multipart
headers.
@szeka9 szeka9 merged commit 321842f into main Jun 9, 2026
1 check 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