Skip to content

Commit 9c652f8

Browse files
authored
Merge pull request #4696 from naman-bruno/bugfix/noproxy-option
add: noproxy flag in options
2 parents 2a44691 + 3c0090d commit 9c652f8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/bruno-cli/src/commands/run.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ const handler = async function (argv) {
345345
if (disableCookies) {
346346
options['disableCookies'] = true;
347347
}
348+
if (noproxy) {
349+
options['noproxy'] = true;
350+
}
348351
if (cacert && cacert.length) {
349352
if (insecure) {
350353
console.error(chalk.red(`Ignoring the cacert option since insecure connections are enabled`));
@@ -457,8 +460,7 @@ const handler = async function (argv) {
457460
collectionRoot,
458461
runtime,
459462
collection,
460-
runSingleRequestByPathname,
461-
noproxy
463+
runSingleRequestByPathname
462464
);
463465
resolve(res?.response);
464466
}
@@ -483,8 +485,7 @@ const handler = async function (argv) {
483485
collectionRoot,
484486
runtime,
485487
collection,
486-
runSingleRequestByPathname,
487-
noproxy
488+
runSingleRequestByPathname
488489
);
489490

490491
const isLastRun = currentRequestIndex === requestItems.length - 1;

packages/bruno-cli/src/runner/run-single-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ const runSingleRequest = async function (
4141
collectionRoot,
4242
runtime,
4343
collection,
44-
runSingleRequestByPathname,
45-
noproxy
44+
runSingleRequestByPathname
4645
) {
4746
const { pathname: itemPathname } = item;
4847
const relativeItemPathname = path.relative(collectionPath, itemPathname);
@@ -118,6 +117,7 @@ const runSingleRequest = async function (
118117

119118
const options = getOptions();
120119
const insecure = get(options, 'insecure', false);
120+
const noproxy = get(options, 'noproxy', false);
121121
const httpsAgentRequestFields = {};
122122
if (insecure) {
123123
httpsAgentRequestFields['rejectUnauthorized'] = false;

0 commit comments

Comments
 (0)