mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 23:54:24 +00:00
Merge branch 'main' into feat/websocket-engine
This commit is contained in:
@@ -111,7 +111,7 @@ function makeAxiosInstance({ requestMaxRedirects = 5, disableCookies } = {}) {
|
||||
}
|
||||
|
||||
if (!disableCookies){
|
||||
saveCookies(redirectUrl, error.response.headers);
|
||||
saveCookies(error.config.url, error.response.headers);
|
||||
}
|
||||
|
||||
const requestConfig = createRedirectConfig(error, redirectUrl);
|
||||
|
||||
@@ -77,6 +77,8 @@ const bruToJson = (bru) => {
|
||||
request: {
|
||||
url: _.get(json, requestType === 'grpc-request' ? 'grpc.url' : 'http.url'),
|
||||
headers: requestType === 'grpc-request' ? _.get(json, 'metadata', []) : _.get(json, 'headers', []),
|
||||
// Preserving special characters in custom methods. Using _.upperCase strips special characters.
|
||||
method: String(_.get(json, 'http.method') ?? '').toUpperCase(),
|
||||
auth: _.get(json, 'auth', {}),
|
||||
params: _.get(json, 'params', []),
|
||||
vars: _.get(json, 'vars', []),
|
||||
|
||||
Reference in New Issue
Block a user