mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Merge branch 'main' into main
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
module github.com/gofiber/storage/postgres
|
||||
|
||||
go 1.14
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
github.com/gofiber/utils v1.0.1
|
||||
|
@@ -55,7 +55,7 @@ func New(config ...Config) *Storage {
|
||||
dsn += url.QueryEscape(cfg.Username)
|
||||
}
|
||||
if cfg.Password != "" {
|
||||
dsn += ":" + cfg.Password
|
||||
dsn += ":" + url.QueryEscape(cfg.Password)
|
||||
}
|
||||
if cfg.Username != "" || cfg.Password != "" {
|
||||
dsn += "@"
|
||||
|
Reference in New Issue
Block a user