jenius-apps / nightingale-rest-api-client

A modern, resource-efficient REST API client for Windows
https://nightingale.rest
MIT License
742 stars 35 forks source link

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

Open ash-eng-spin opened 6 months ago

ash-eng-spin commented 6 months ago

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