File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,9 @@ const handler = async function (argv) {
345
345
if ( disableCookies ) {
346
346
options [ 'disableCookies' ] = true ;
347
347
}
348
+ if ( noproxy ) {
349
+ options [ 'noproxy' ] = true ;
350
+ }
348
351
if ( cacert && cacert . length ) {
349
352
if ( insecure ) {
350
353
console . error ( chalk . red ( `Ignoring the cacert option since insecure connections are enabled` ) ) ;
@@ -457,8 +460,7 @@ const handler = async function (argv) {
457
460
collectionRoot ,
458
461
runtime ,
459
462
collection ,
460
- runSingleRequestByPathname ,
461
- noproxy
463
+ runSingleRequestByPathname
462
464
) ;
463
465
resolve ( res ?. response ) ;
464
466
}
@@ -483,8 +485,7 @@ const handler = async function (argv) {
483
485
collectionRoot ,
484
486
runtime ,
485
487
collection ,
486
- runSingleRequestByPathname ,
487
- noproxy
488
+ runSingleRequestByPathname
488
489
) ;
489
490
490
491
const isLastRun = currentRequestIndex === requestItems . length - 1 ;
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ const runSingleRequest = async function (
41
41
collectionRoot ,
42
42
runtime ,
43
43
collection ,
44
- runSingleRequestByPathname ,
45
- noproxy
44
+ runSingleRequestByPathname
46
45
) {
47
46
const { pathname : itemPathname } = item ;
48
47
const relativeItemPathname = path . relative ( collectionPath , itemPathname ) ;
@@ -118,6 +117,7 @@ const runSingleRequest = async function (
118
117
119
118
const options = getOptions ( ) ;
120
119
const insecure = get ( options , 'insecure' , false ) ;
120
+ const noproxy = get ( options , 'noproxy' , false ) ;
121
121
const httpsAgentRequestFields = { } ;
122
122
if ( insecure ) {
123
123
httpsAgentRequestFields [ 'rejectUnauthorized' ] = false ;
You can’t perform that action at this time.
0 commit comments