From 852c9d3891692306053fad3c94991d2ca36ac620 Mon Sep 17 00:00:00 2001 From: jokj624 Date: Sun, 18 Aug 2024 04:21:07 +0900 Subject: [PATCH] fix: invalid file path in shell-curl --- packages/bruno-app/src/utils/codegenerator/har.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/codegenerator/har.js b/packages/bruno-app/src/utils/codegenerator/har.js index c17eef8662..fa07385030 100644 --- a/packages/bruno-app/src/utils/codegenerator/har.js +++ b/packages/bruno-app/src/utils/codegenerator/har.js @@ -50,7 +50,11 @@ const createPostData = (body) => { mimeType: contentType, params: body[body.mode] .filter((param) => param.enabled) - .map((param) => ({ name: param.name, value: param.value })) + .map((param) => ({ + name: param.name, + value: param.value, + ...(param.type === 'file' && { fileName: param.value }) + })) }; } else { return {