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

Sending multipart/form-data results in the wrong request body #619

Open
mourtisma opened this issue Nov 14, 2019 · 1 comment
Open

Sending multipart/form-data results in the wrong request body #619

mourtisma opened this issue Nov 14, 2019 · 1 comment
Assignees

Comments

@mourtisma
Copy link

When sending a POST request and selecting multipart/form-data as the Content-Type in the Headers section, the request body is a request payload, with parameters separated by a boundary

When sending the same POST request with Postman for example, the Content-Type is multipart/form-data; boundary=<the boundary>, which splits the payload and finally sends the request body as form data parameters, readable by most clients

In the API console, this can be achieved by removing the Content-Type in the Headers section, and let the internal JavaScript taking care of building the header with the boundary automatically

=> Would it be possible, when we select Content-Type: multipart/form-data, to automatically add the boundary when the request is sent ?

@jarrodek
Copy link
Contributor

jarrodek commented Nov 14, 2019

Hi,
Thank you for the issue report.

Would it be possible, when we select Content-Type: multipart/form-data, to automatically add the boundary when the request is sent ?

This is what should happen. If it doesn't it is a bug. I will take a look into this and will try to reproduce.

@jarrodek jarrodek self-assigned this Nov 14, 2019
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