T 072733: Update multipart form request serializer#165
Merged
Conversation
plflanagan
reviewed
Mar 18, 2022
Contributor
plflanagan
left a comment
There was a problem hiding this comment.
I've left one comment, but I will also leave final approval to others who have more experience with conduit and understand the implications better of changing it.
Sources/Conduit/Networking/Serialization/MultipartFormRequestSerializer.swift
Outdated
Show resolved
Hide resolved
asolovev
approved these changes
Mar 22, 2022
asolovev
left a comment
There was a problem hiding this comment.
Overall seems fine. Added a suggestion about using "Random Unification" methods.
There is also a note in RFC2046
WARNING TO IMPLEMENTORS: The grammar for parameters on the Content-
type field is such that it is often necessary to enclose the boundary
parameter values in quotes on the Content-type line. This is not
always necessary, but never hurts.
It doesn't seem necessary in our case, but if there will be additional problems, we can try it as well or use a longer boundary.
Sources/Conduit/Networking/Serialization/MultipartFormRequestSerializer.swift
Show resolved
Hide resolved
anthony-lipscomb-dev
approved these changes
Mar 22, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes (pick all that apply):
Summary
RestAPI.RestAPIendpoint in question (/Documents/LiabilityRelease?consumerId=[ID]) wasn't accepting the existing boundary value.Implementation
MultipartFormRequestSerializer.Test Plan
MultipartFormRequestSerializer.