mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +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,
|
mimeType: contentType,
|
||||||
params: body[body.mode]
|
params: body[body.mode]
|
||||||
.filter((param) => param.enabled)
|
.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 {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user