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:
Sid
2026-05-25 20:05:50 +05:30
committed by GitHub
parent 87d97ba0ef
commit a3e3199490
9 changed files with 331 additions and 4 deletions

View File

@@ -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);