mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-05 05:29:00 +01:00
Merge pull request #3701 from lohxt1/fix/cli-multipart
fix: cli multipart
This commit is contained in:
commit
e4574e3a56
@ -136,8 +136,7 @@ const prepareRequest = (item = {}, collection = {}) => {
|
|||||||
if (request.body.mode === 'multipartForm') {
|
if (request.body.mode === 'multipartForm') {
|
||||||
axiosRequest.headers['content-type'] = 'multipart/form-data';
|
axiosRequest.headers['content-type'] = 'multipart/form-data';
|
||||||
const enabledParams = filter(request.body.multipartForm, (p) => p.enabled);
|
const enabledParams = filter(request.body.multipartForm, (p) => p.enabled);
|
||||||
const collectionPath = process.cwd();
|
axiosRequest.data = enabledParams;
|
||||||
axiosRequest.data = createFormData(enabledParams, collectionPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.body.mode === 'graphql') {
|
if (request.body.mode === 'graphql') {
|
||||||
|
Loading…
Reference in New Issue
Block a user