We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5233b3e commit 7ad6ba4Copy full SHA for 7ad6ba4
index.js
@@ -58,7 +58,7 @@ function parse(str) {
58
config.ssl = true;
59
}
60
61
- if (config.ssl === '0') {
+ if (config.ssl === 'false' || config.ssl === '0') {
62
config.ssl = false;
63
64
test/parse.js
@@ -180,6 +180,12 @@ describe('parse', function(){
180
var subject = parse(connectionString);
181
subject.ssl.should.equal(true);
182
});
183
+
184
+ it('configuration parameter ssl=false', function(){
185
+ var connectionString = 'pg:///?ssl=false';
186
+ var subject = parse(connectionString);
187
+ subject.ssl.should.equal(false);
188
+ });
189
190
it('configuration parameter ssl=1', function(){
191
var connectionString = 'pg:///?ssl=1';
0 commit comments