From a1783c46ed790836f0374ae0f2756c31eec57691 Mon Sep 17 00:00:00 2001 From: Chae Jeong Ah Date: Mon, 19 Aug 2024 21:48:39 +0900 Subject: [PATCH] fix: invalid file path in shell-curl (#2855) --- 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 {