fix: urlencoded not switching to formdata

This commit is contained in:
Andrew Bastin
2022-01-23 14:13:02 +05:30
parent b57b948107
commit 7861c0006f

View File

@@ -219,6 +219,7 @@ const dispatchers = defineDispatchers({
curr.request.body.contentType === "application/x-www-form-urlencoded" curr.request.body.contentType === "application/x-www-form-urlencoded"
) { ) {
return { return {
request: {
...curr.request, ...curr.request,
body: <HoppRESTReqBody>{ body: <HoppRESTReqBody>{
contentType: "multipart/form-data", contentType: "multipart/form-data",
@@ -231,6 +232,7 @@ const dispatchers = defineDispatchers({
) )
), ),
}, },
},
} }
} }