File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ function XMLHttpRequest(opts) {
397
397
options . cert = opts . cert ;
398
398
options . ca = opts . ca ;
399
399
options . ciphers = opts . ciphers ;
400
- options . rejectUnauthorized = opts . rejectUnauthorized ;
400
+ options . rejectUnauthorized = opts . rejectUnauthorized === false ? false : true ;
401
401
}
402
402
403
403
// Reset error flag
@@ -442,7 +442,7 @@ function XMLHttpRequest(opts) {
442
442
newOptions . cert = opts . cert ;
443
443
newOptions . ca = opts . ca ;
444
444
newOptions . ciphers = opts . ciphers ;
445
- newOptions . rejectUnauthorized = opts . rejectUnauthorized ;
445
+ newOptions . rejectUnauthorized = opts . rejectUnauthorized === false ? false : true ;
446
446
}
447
447
448
448
// Issue the new request
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " xmlhttprequest-ssl" ,
3
3
"description" : " XMLHttpRequest for Node" ,
4
- "version" : " 1.6.0 " ,
4
+ "version" : " 1.6.1 " ,
5
5
"author" : {
6
6
"name" : " Michael de Wit"
7
7
},
You can’t perform that action at this time.
0 commit comments