Skip to content

fix: Stop reading to end of stream in LimitedField#5807

Open
elramen wants to merge 3 commits intomasterfrom
ps3
Open

fix: Stop reading to end of stream in LimitedField#5807
elramen wants to merge 3 commits intomasterfrom
ps3

Conversation

@elramen
Copy link
Copy Markdown
Member

@elramen elramen commented Apr 9, 2026

Stop reading to end of stream in LimitedField - consuming an entire field before reading the next one is not necessary as multer already handles this internally.

Ref: INGEST-830

@linear-code
Copy link
Copy Markdown

linear-code bot commented Apr 9, 2026

@elramen elramen marked this pull request as ready for review April 9, 2026 15:38
@elramen elramen requested a review from a team as a code owner April 9, 2026 15:38
@elramen elramen requested a review from tobias-wilfert April 9, 2026 15:43
@tobias-wilfert tobias-wilfert requested a review from Dav1dde April 10, 2026 06:53
@tobias-wilfert
Copy link
Copy Markdown
Member

I could swear this logic was necessary but seems like that is not the case indeed: https://docs.rs/multer/latest/multer/struct.Multipart.html#method.next_field

Copy link
Copy Markdown
Member

@tobias-wilfert tobias-wilfert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also have David have a look, just in case he sees a reason why this would still be needed.

@elramen elramen requested a review from Dav1dde April 10, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants