Skip to content

Commit

Permalink
Revert "default rejectUnauthorized to true" (#496)
Browse files Browse the repository at this point in the history
This reverts commit 2c55b27, which breaks websocket transport under node v0.10 (#494).
  • Loading branch information
darrachequesne authored Oct 5, 2016
1 parent a0e63fe commit 67ac4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Socket (uri, opts) {
this.cert = opts.cert || null;
this.ca = opts.ca || null;
this.ciphers = opts.ciphers || null;
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? true : opts.rejectUnauthorized;
this.rejectUnauthorized = opts.rejectUnauthorized === undefined ? null : opts.rejectUnauthorized;

// other options for Node.js client
var freeGlobal = typeof global === 'object' && global;
Expand Down

0 comments on commit 67ac4b7

Please sign in to comment.