fix: cli multipart

This commit is contained in:
lohxt1 2024-12-27 16:50:12 +05:30
parent f871bc0fa2
commit 43e892f9b0

View File

@ -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') {