From 6d8cc38946c414a368de878bcd1395144ebc1daf Mon Sep 17 00:00:00 2001 From: lohit Date: Thu, 21 Nov 2024 17:53:09 +0530 Subject: [PATCH] changed `use-cookies` to `disable-cookies` --- packages/bruno-cli/src/runner/run-single-request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index 9a4f22370..e4f3740f6 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -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) {