Skip to content

Conversation

@saharbechor
Copy link

  • remove content type header when on application/form-data)
  • use MultipartBody with addFormDataPart for multipart and FormBody for x-www-form-urlencoded
  • special case when file is included (with the user fileInput)

@alextrevgoda
Copy link

🎉

@saharbechor saharbechor merged commit 2211549 into master Mar 30, 2022
@saharbechor saharbechor deleted the sahar/java-okhttp-snippet branch March 30, 2022 09:12
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.

4 participants