Skip to content

Commit 2dbaa3e

Browse files
committed
Possible fix to decoding repsonses in redis.
1 parent 6fc198e commit 2dbaa3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starlette_plus/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class Redis:
2020
def __init__(self, *, url: str | None = None) -> None:
2121
url = url or "redis://localhost:6379/0"
22-
pool = redis.ConnectionPool.from_url(url) # type: ignore
22+
pool = redis.ConnectionPool.from_url(url, decode_responses=True) # type: ignore
2323

2424
self.pool: redis.Redis = redis.Redis.from_pool(pool)
2525

0 commit comments

Comments
 (0)