Skip to content

Commit 377f75c

Browse files
committed
Merge pull request octokit#170 from raszi/self_signed_certificate
feat(SSL client): pass rejectUnauthorized
2 parents f26d9ea + fedcde4 commit 377f75c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ var Client = module.exports = function(config) {
736736
headers: headers
737737
};
738738

739+
if (this.config.rejectUnauthorized !== undefined)
740+
options.rejectUnauthorized = this.config.rejectUnauthorized;
741+
739742
if (this.debug)
740743
console.log("REQUEST: ", options);
741744

0 commit comments

Comments
 (0)