File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/pg-connection-string Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function parse(str) {
61
61
config . ssl = true
62
62
}
63
63
64
- if ( config . ssl === '0' ) {
64
+ if ( config . ssl === 'false' || config . ssl === ' 0') {
65
65
config . ssl = false
66
66
}
67
67
Original file line number Diff line number Diff line change @@ -199,6 +199,12 @@ describe('parse', function () {
199
199
var subject = parse ( connectionString )
200
200
subject . ssl . should . equal ( true )
201
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
+ } )
202
208
203
209
it ( 'configuration parameter ssl=1' , function ( ) {
204
210
var connectionString = 'pg:///?ssl=1'
You can’t perform that action at this time.
0 commit comments