From f62d4ebdfc9ab8dc069015060b70b267143e78ba Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Fri, 25 Mar 2022 15:17:34 +0300 Subject: [PATCH] Msgpack handling: fix compatibilty with newer fastapi. Fixes #112. Supersedes #127. --- etebase_fastapi/msgpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etebase_fastapi/msgpack.py b/etebase_fastapi/msgpack.py index a671e79..3871d15 100644 --- a/etebase_fastapi/msgpack.py +++ b/etebase_fastapi/msgpack.py @@ -12,7 +12,7 @@ from .db_hack import django_db_cleanup_decorator class MsgpackRequest(Request): media_type = "application/msgpack" - async def json(self) -> bytes: + async def body(self) -> bytes: if not hasattr(self, "_json"): body = await super().body() self._json = msgpack_decode(body)