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

[BUG] [JAVA] [WebClient] URL encoded should not use multipart body inserter #2685

Closed
4 of 5 tasks
hfgbarrigas opened this issue Apr 17, 2019 · 1 comment
Closed
4 of 5 tasks

Comments

@hfgbarrigas
Copy link
Contributor

hfgbarrigas commented Apr 17, 2019

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output? Use the correct formData body inserter.
Description

At the moment when a body inserter is selected to use on webclient, url encoded is wrongly using multi part body inserter. It should not.

openapi-generator version

4.0.0 latest master version.

Suggest a fix

Use BodyInserters.fromFormData for url encoded and BodyInserters.fromMultipartData for multipart.

@wing328
Copy link
Member

wing328 commented Apr 24, 2019

@hfgbarrigas thanks for the PR, which has been merged into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants