Skip to content

Commit e1ee8e4

Browse files
committed
test NODE_TLS_REJECT_UNAUTHORIZED
1 parent 08d8a1b commit e1ee8e4

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

webhooks/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,12 @@ class Webhooks {
442442
}
443443
};
444444
if (q.protocol == "https:") {
445-
logger.debug("Setting rejectUnauthorized: false");
446-
const httpsAgent = new protocol.Agent({
447-
rejectUnauthorized: false // (NOTE: this will disable client verification)
448-
});
449-
options.httpsAgent = httpsAgent;
445+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
446+
// logger.debug("Setting rejectUnauthorized: false");
447+
// const httpsAgent = new protocol.Agent({
448+
// rejectUnauthorized: false // (NOTE: this will disable client verification)
449+
// });
450+
// options.httpsAgent = httpsAgent;
450451
}
451452
logger.debug("Using request options:", options);
452453
try {

0 commit comments

Comments
 (0)