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: {
|
||||
method: _.lowerCase(_.get(json, 'request.method')),
|
||||
url: _.get(json, 'request.url'),
|
||||
mode: _.get(json, 'request.body.mode', 'none')
|
||||
body: _.get(json, 'request.body.mode', 'none')
|
||||
},
|
||||
query: _.get(json, 'request.params', []),
|
||||
headers: _.get(json, 'request.headers', []),
|
||||
|
@ -75,7 +75,7 @@ const migrateLegacyBruFile = async (bruContent, pathname) => {
|
||||
http: {
|
||||
method: _.lowerCase(_.get(json, 'request.method')),
|
||||
url: _.get(json, 'request.url'),
|
||||
mode: _.get(json, 'request.body.mode', 'none')
|
||||
body: _.get(json, 'request.body.mode', 'none')
|
||||
},
|
||||
query: _.get(json, 'request.params', []),
|
||||
headers: _.get(json, 'request.headers', []),
|
||||
|
@ -42,9 +42,9 @@ const jsonToBru = (json) => {
|
||||
bru += `${http.method} {
|
||||
url: ${http.url}`;
|
||||
|
||||
if(http.mode && http.mode.length) {
|
||||
if(http.body && http.body.length) {
|
||||
bru += `
|
||||
body: ${http.mode}`;
|
||||
body: ${http.body}`;
|
||||
}
|
||||
|
||||
bru += `
|
||||
|
Loading…
Reference in New Issue
Block a user