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

Commit

Permalink
fix(uri-parser): do not use hasOwnProperty to detect ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Feb 1, 2018
1 parent 3831c4a commit 69d16c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uri_parser.js
Expand Up @@ -75,7 +75,7 @@ function parseSrvConnectionString(uri, options, callback) {
let connectionStringOptions = [];

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

Expand Down

0 comments on commit 69d16c7

Please sign in to comment.