Skip to content

fix(core): Handle both variations of multipart/mixed preamble#3172

Merged
kitten merged 1 commit intomainfrom
fix/multipart-mixed-variation
Apr 20, 2023
Merged

fix(core): Handle both variations of multipart/mixed preamble#3172
kitten merged 1 commit intomainfrom
fix/multipart-mixed-variation

Conversation

@kitten
Copy link
Copy Markdown
Member

@kitten kitten commented Apr 20, 2023

Summary

This implements a fix for a regression in #3155.

Basically, we now split the incoming multipart/mixed response by CRLF and the boundary. However, our tests send the preamble split by CRLF + boundary, while some newer variations would only send the boundary as the preamble and only after use CRLF

This caused the first payload to be malformed and disregarded.

Set of changes

  • Add preamble recovery depending on CRLF splitting

@kitten kitten requested a review from JoviDeCroock April 20, 2023 16:08
@kitten kitten merged commit a4d1aa1 into main Apr 20, 2023
@kitten kitten deleted the fix/multipart-mixed-variation branch April 20, 2023 16:25
@github-actions github-actions Bot mentioned this pull request Apr 20, 2023
@maraisr
Copy link
Copy Markdown
Contributor

maraisr commented Apr 26, 2023

You could just pull in meros and get this kind of stuff for free

@kitten
Copy link
Copy Markdown
Member Author

kitten commented Apr 26, 2023

@maraisr We can't really any longer 😄 At least looking at it from what we did in the last major, the implementation now also throws out some smaller things we don't need and is combined with event streams, so I'm fine with fixing a regression from the refactor at the benefit of the combined implementation 👀

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.

3 participants