We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b9bb34 commit 7561b88Copy full SHA for 7561b88
packages/pg-connection-string/index.js
@@ -61,7 +61,7 @@ function parse(str) {
61
config.ssl = true
62
}
63
64
- if (config.ssl === '0') {
+ if (config.ssl === 'false' || config.ssl === '0') {
65
config.ssl = false
66
67
packages/pg-connection-string/test/parse.js
@@ -199,6 +199,12 @@ describe('parse', function () {
199
var subject = parse(connectionString)
200
subject.ssl.should.equal(true)
201
})
202
+
203
+ it('configuration parameter ssl=false', function () {
204
+ var connectionString = 'pg:///?ssl=false'
205
+ var subject = parse(connectionString)
206
+ subject.ssl.should.equal(false)
207
+ })
208
209
it('configuration parameter ssl=1', function () {
210
var connectionString = 'pg:///?ssl=1'
0 commit comments