Skip to content
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

Sahar/java okhttp snippet #6

Merged
merged 6 commits into from
Mar 30, 2022
Merged

Sahar/java okhttp snippet #6

merged 6 commits into from
Mar 30, 2022

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)

src/targets/java/okhttp.js Outdated Show resolved Hide resolved
src/targets/java/okhttp.js Outdated Show resolved Hide resolved
@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.

3 participants