1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 09:13:23 +00:00

Fix content type being passed to aiohttp response stub

This commit is contained in:
Luiz Menezes
2018-07-07 23:56:39 -03:00
parent ab6e6b5b5d
commit 75cb067e29
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class MockClientResponse(ClientResponse):
# TODO: get encoding from header
@asyncio.coroutine
def json(self, *, encoding='utf-8', loads=json.loads): # NOQA: E999
def json(self, *, encoding='utf-8', loads=json.loads, **kwargs): # NOQA: E999
return loads(self._body.decode(encoding))
@asyncio.coroutine