mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 15:33:11 +01:00
changed use-cookies
to disable-cookies
This commit is contained in:
parent
9d4246d74b
commit
6d8cc38946
@ -180,7 +180,7 @@ const runSingleRequest = async function (
|
||||
}
|
||||
|
||||
//set cookies if enabled
|
||||
if (options.useCookies) {
|
||||
if (!options.disableCookies) {
|
||||
const cookieString = getCookieStringForUrl(request.url);
|
||||
if (cookieString && typeof cookieString === 'string' && cookieString.length) {
|
||||
request.headers['cookie'] = cookieString;
|
||||
@ -231,7 +231,7 @@ const runSingleRequest = async function (
|
||||
response.headers.delete('request-duration');
|
||||
|
||||
//save cookies if enabled
|
||||
if (options.useCookies) {
|
||||
if (!options.disableCookies) {
|
||||
saveCookies(request.url, response.headers);
|
||||
}
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user