mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +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
|
//set cookies if enabled
|
||||||
if (options.useCookies) {
|
if (!options.disableCookies) {
|
||||||
const cookieString = getCookieStringForUrl(request.url);
|
const cookieString = getCookieStringForUrl(request.url);
|
||||||
if (cookieString && typeof cookieString === 'string' && cookieString.length) {
|
if (cookieString && typeof cookieString === 'string' && cookieString.length) {
|
||||||
request.headers['cookie'] = cookieString;
|
request.headers['cookie'] = cookieString;
|
||||||
@ -231,7 +231,7 @@ const runSingleRequest = async function (
|
|||||||
response.headers.delete('request-duration');
|
response.headers.delete('request-duration');
|
||||||
|
|
||||||
//save cookies if enabled
|
//save cookies if enabled
|
||||||
if (options.useCookies) {
|
if (!options.disableCookies) {
|
||||||
saveCookies(request.url, response.headers);
|
saveCookies(request.url, response.headers);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user