Skip to content

Fix invalid truncation of multipart responses - #54

Merged
szeka9 merged 1 commit into
mainfrom
development
Sep 19, 2026
Merged

szeka9 merged 1 commit into
mainfrom
development

Conversation

@szeka9

@szeka9 szeka9 commented Sep 19, 2026

Copy link
Copy Markdown
Owner

There is a bug in the multipart response generator, unnecessarily
truncating the response while indexing response chunks relative
to the original chunk size.

Additionally, wrap parts in memoryviews to avoid creating temporary
objects when assembling chunks from part slices.

Add missing unit tests for multipart responses and adjust existing
tests to align with valid HTTP method/body semantics.

There is a bug in the multipart response generator,
unnecessarily truncating the response while indexing
response chunks relative to the original chunk size.

Additionally, wrap parts in memoryviews to avoid
creating temporary objects when assembling chunks
from part slices.

Add missing unit tests for multipart responses
and adjust existing tests to align with valid HTTP
method/body semantics.
@szeka9
szeka9 merged commit 59592cc into main Sep 19, 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