Skip to content

Commit

Permalink
fix: invalid file path in shell-curl (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokj624 authored Aug 19, 2024
1 parent 017d223 commit a1783c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/bruno-app/src/utils/codegenerator/har.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a1783c4

Please sign in to comment.