diff --git a/aioresponses/compat.py b/aioresponses/compat.py index 321a33a..d2624ad 100644 --- a/aioresponses/compat.py +++ b/aioresponses/compat.py @@ -45,7 +45,7 @@ def stream_reader_factory( # noqa loop: 'Optional[asyncio.AbstractEventLoop]' = None ): protocol = ResponseHandler(loop=loop) - return StreamReader(protocol, loop=loop) + return StreamReader(protocol, limit=2 ** 16, loop=loop) else: