File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -146,11 +146,11 @@ def opts_from_url(url)
146146
147147 def opts_from_non_params ( url )
148148 { } . tap do |o |
149- o [ :host ] = url . host if url . host
150- o [ :port ] = url . port if url . port
151- o [ :username ] = URI . decode_www_form_component ( url . user ) if url . user
152- o [ :password ] = URI . decode_www_form_component ( url . password ) if url . password
153- o [ :database ] = url . path [ 1 ..-1 ] if url . path . length > 1
149+ o [ :host ] = url . host if url . host
150+ o [ :port ] = url . port if url . port
151+ o [ :username ] = URI . decode_www_form_component ( url . user ) if url . user
152+ o [ :password ] = URI . decode_www_form_component ( url . password ) if url . password
153+ o [ :database ] = url . path [ 1 ..-1 ] if url . path . length > 1
154154 o [ :use_ssl ] = url . scheme == "https" . freeze
155155
156156 o [ :udp ] = { host : o [ :host ] , port : o [ :port ] } if url . scheme == "udp"
You can’t perform that action at this time.
0 commit comments