Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 69d16c7

Browse files
committed
fix(uri-parser): do not use hasOwnProperty to detect ssl
1 parent 3831c4a commit 69d16c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uri_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function parseSrvConnectionString(uri, options, callback) {
7575
let connectionStringOptions = [];
7676

7777
// Default to SSL true
78-
if (!options.ssl && (!result.search || !result.query.hasOwnProperty('ssl'))) {
78+
if (!options.ssl && (!result.search || result.query['ssl'] == null)) {
7979
connectionStringOptions.push('ssl=true');
8080
}
8181

0 commit comments

Comments
 (0)