Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd MultipartBody.Builder#addFormDataPart that accepts a MediaType #5627
Labels
Milestone
Comments
I'd like to check to see what browsers do here, and do likewise. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you please add a
MultipartBody.Builder#addFormDataPart
overload that accepts aMediaType
. Some web frameworks will outright ignore parts without content type. Without it we have to resort to this beast..addPart(Headers.of("Content-Disposition", "form-data; name=\"title\""), RequestBody.create("Square Logo", MediaType.get("text/plain")))
Reference: 26949cf#r36218386