mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 06:28:33 +00:00
fix: multipart/mixed and multipart/form-data interpolation and generic request behaviour (#8087)
* fix: multipart spec additions and interpolation fixes * test(cli): add interpolation multipart tests * Update packages/bruno-tests/collection/multipart/multipart-mixed-form-data-parse.bru Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: remove assert as curl also gives the same result * chore: codestyle --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -487,7 +487,7 @@ const runSingleRequest = async function (
|
||||
|
||||
const contentType = contentTypeHeader ? request.headers[contentTypeHeader] : '';
|
||||
if (typeof contentType === 'string' && contentType.startsWith('multipart/')) {
|
||||
if (!isFormData(request?.data)) {
|
||||
if (typeof request.data !== 'string' && !isFormData(request?.data)) {
|
||||
request._originalMultipartData = request.data;
|
||||
request.collectionPath = collectionPath;
|
||||
let form = createFormData(request.data, collectionPath);
|
||||
|
||||
Reference in New Issue
Block a user