mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
chore: update deps
This commit is contained in:
@@ -97,7 +97,7 @@ class Coder:
|
||||
|
||||
class JsonCoder(Coder):
|
||||
@classmethod
|
||||
def encode(cls, value: Any) -> bytes:
|
||||
def encode(cls, value: Any) -> Any:
|
||||
if isinstance(value, JSONResponse):
|
||||
return value.body
|
||||
return json.dumps(value, cls=JsonEncoder).encode()
|
||||
|
||||
Reference in New Issue
Block a user