mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-02 00:54:09 +00:00
fix(#329): fixed basic auth header issue + added cli support for basic and bearer auth
This commit is contained in:
@@ -38,6 +38,7 @@ const bruToJson = (bru) => {
|
||||
request: {
|
||||
method: _.upperCase(_.get(json, 'http.method')),
|
||||
url: _.get(json, 'http.url'),
|
||||
auth: _.get(json, 'auth', {}),
|
||||
params: _.get(json, 'query', []),
|
||||
headers: _.get(json, 'headers', []),
|
||||
body: _.get(json, 'body', {}),
|
||||
@@ -49,6 +50,7 @@ const bruToJson = (bru) => {
|
||||
};
|
||||
|
||||
transformedJson.request.body.mode = _.get(json, 'http.body', 'none');
|
||||
transformedJson.request.auth.mode = _.get(json, 'http.auth', 'none');
|
||||
|
||||
return transformedJson;
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user