Skip to content

Commit

Permalink
Possible fix to decoding repsonses in redis.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed May 7, 2024
1 parent 6fc198e commit 2dbaa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette_plus/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class Redis:
def __init__(self, *, url: str | None = None) -> None:
url = url or "redis://localhost:6379/0"
pool = redis.ConnectionPool.from_url(url) # type: ignore
pool = redis.ConnectionPool.from_url(url, decode_responses=True) # type: ignore

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

Expand Down

0 comments on commit 2dbaa3e

Please sign in to comment.