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

Multi-part form-data requests: text part should support multi-line text #276

Open
ash-eng-spin opened this issue Feb 26, 2024 · 0 comments

Comments

@ash-eng-spin
Copy link

ash-eng-spin commented Feb 26, 2024

In a text part of a multi-part request, there can be many content-types for example text/plain, application/json, application/xml, etc. Particularly with the latter 2 content-types, the text/data is going to be multi-line in format. Nightingale cuts off everything but the first line, which will cause a 400 Bad Request because the payload isn't complete.

Please allow for multi-line text in multi-part form-data requests

Here you can see I'm trying to type json into the text part:
image

Nightingale does not save the entire multi-line text. Just the first line (in my case the opening brace of a json object)
image

Which results in the text payload not coming over in its entirety, causing a 400 Bad Request
image

Version: 4.4.2.0
OS: Windows

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

No branches or pull requests

1 participant