Merge pull request #3701 from lohxt1/fix/cli-multipart

fix: cli multipart
This commit is contained in:
lohit 2024-12-30 10:48:54 +05:30 committed by GitHub
commit e4574e3a56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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