1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix #1716 - decode username and password from url

This commit is contained in:
leibale
2021-11-11 17:43:17 -05:00
parent a6a1637686
commit 41423fe8aa

View File

@@ -101,11 +101,11 @@ export default class RedisClient<M extends RedisModules, S extends RedisScripts>
} }
if (username) { if (username) {
parsed.username = username; parsed.username = decodeURIComponent(username);
} }
if (password) { if (password) {
parsed.password = password; parsed.password = decodeURIComponent(password);
} }
if (pathname.length > 1) { if (pathname.length > 1) {