mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-25 16:18:56 +01:00
fix: invalid file path in shell-curl (#2855)
This commit is contained in:
parent
017d2235b8
commit
a1783c46ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user