mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-03 04:29:09 +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') {
|
||||
axiosRequest.headers['content-type'] = 'multipart/form-data';
|
||||
const enabledParams = filter(request.body.multipartForm, (p) => p.enabled);
|
||||
const collectionPath = process.cwd();
|
||||
axiosRequest.data = createFormData(enabledParams, collectionPath);
|
||||
axiosRequest.data = enabledParams;
|
||||
}
|
||||
|
||||
if (request.body.mode === 'graphql') {
|
||||
|
Loading…
Reference in New Issue
Block a user