-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow having an empty last part in multipart #4598
Conversation
✅ Deploy Preview for apollo-android-docs canceled.
|
@@ -110,6 +110,14 @@ class MultipartReader constructor( | |||
when (source.select(afterBoundaryOptions)) { | |||
0 -> { | |||
// "\r\n": We've found a new part. | |||
if (source.select(Options.of("--$boundary--".encodeUtf8())) == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be done at the same time as the other select? Looks like creating Options
could be expensive so I wouldn't want to create too many?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the select thing. Maybe let's wait a bit see what graphql-yoga has to say about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice to be liberal about what we accept
(cherry picked from commit 7e4550a)
Related to #4596.
See also dotansimha/graphql-yoga#2243