mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-03 04:29:09 +01:00
fix: fixed issues around body mode conversion
This commit is contained in:
parent
1110a4edda
commit
89b721d726
@ -107,7 +107,7 @@ const jsonToBru = (json) => {
|
|||||||
http: {
|
http: {
|
||||||
method: _.lowerCase(_.get(json, 'request.method')),
|
method: _.lowerCase(_.get(json, 'request.method')),
|
||||||
url: _.get(json, 'request.url'),
|
url: _.get(json, 'request.url'),
|
||||||
mode: _.get(json, 'request.body.mode', 'none')
|
body: _.get(json, 'request.body.mode', 'none')
|
||||||
},
|
},
|
||||||
query: _.get(json, 'request.params', []),
|
query: _.get(json, 'request.params', []),
|
||||||
headers: _.get(json, 'request.headers', []),
|
headers: _.get(json, 'request.headers', []),
|
||||||
|
@ -75,7 +75,7 @@ const migrateLegacyBruFile = async (bruContent, pathname) => {
|
|||||||
http: {
|
http: {
|
||||||
method: _.lowerCase(_.get(json, 'request.method')),
|
method: _.lowerCase(_.get(json, 'request.method')),
|
||||||
url: _.get(json, 'request.url'),
|
url: _.get(json, 'request.url'),
|
||||||
mode: _.get(json, 'request.body.mode', 'none')
|
body: _.get(json, 'request.body.mode', 'none')
|
||||||
},
|
},
|
||||||
query: _.get(json, 'request.params', []),
|
query: _.get(json, 'request.params', []),
|
||||||
headers: _.get(json, 'request.headers', []),
|
headers: _.get(json, 'request.headers', []),
|
||||||
|
@ -42,9 +42,9 @@ const jsonToBru = (json) => {
|
|||||||
bru += `${http.method} {
|
bru += `${http.method} {
|
||||||
url: ${http.url}`;
|
url: ${http.url}`;
|
||||||
|
|
||||||
if(http.mode && http.mode.length) {
|
if(http.body && http.body.length) {
|
||||||
bru += `
|
bru += `
|
||||||
body: ${http.mode}`;
|
body: ${http.body}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
bru += `
|
bru += `
|
||||||
|
Loading…
Reference in New Issue
Block a user