Skip to content

Commit 3ad351e

Browse files
QueryEscape
1 parent 4338afd commit 3ad351e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/go-mongo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func init() {
3737
panic("MONGO_USER is required")
3838
}
3939

40-
mongoPassword := url.PathEscape(os.Getenv("MONGO_PASSWORD"))
40+
mongoPassword := url.QueryEscape(os.Getenv("MONGO_PASSWORD"))
4141
if mongoPassword == "" {
4242
panic("MONGO_PASSWORD is required")
4343
}

0 commit comments

Comments
 (0)