diff --git a/packages/hoppscotch-app/newstore/RESTSession.ts b/packages/hoppscotch-app/newstore/RESTSession.ts index d00d7314f..2b060eba3 100644 --- a/packages/hoppscotch-app/newstore/RESTSession.ts +++ b/packages/hoppscotch-app/newstore/RESTSession.ts @@ -219,17 +219,19 @@ const dispatchers = defineDispatchers({ curr.request.body.contentType === "application/x-www-form-urlencoded" ) { return { - ...curr.request, - body: { - contentType: "multipart/form-data", - body: pipe( - curr.request.body.body, - parseRawKeyValueEntries, - A.map( - ({ key, value, active }) => - { key, value, active, isFile: false } - ) - ), + request: { + ...curr.request, + body: { + contentType: "multipart/form-data", + body: pipe( + curr.request.body.body, + parseRawKeyValueEntries, + A.map( + ({ key, value, active }) => + { key, value, active, isFile: false } + ) + ), + }, }, } }