Skip to content

Commit

Permalink
test NODE_TLS_REJECT_UNAUTHORIZED
Browse files Browse the repository at this point in the history
  • Loading branch information
sponzillo committed Dec 2, 2021
1 parent 08d8a1b commit e1ee8e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions webhooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,12 @@ class Webhooks {
}
};
if (q.protocol == "https:") {
logger.debug("Setting rejectUnauthorized: false");
const httpsAgent = new protocol.Agent({
rejectUnauthorized: false // (NOTE: this will disable client verification)
});
options.httpsAgent = httpsAgent;
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
// logger.debug("Setting rejectUnauthorized: false");
// const httpsAgent = new protocol.Agent({
// rejectUnauthorized: false // (NOTE: this will disable client verification)
// });
// options.httpsAgent = httpsAgent;
}
logger.debug("Using request options:", options);
try {
Expand Down

0 comments on commit e1ee8e4

Please sign in to comment.