From a19605a14e64b98a32e00f0794b47fb145735bcb Mon Sep 17 00:00:00 2001 From: Jarkko Jaakola Date: Mon, 13 Jan 2025 15:59:58 +0200 Subject: [PATCH] fix: max request size always set to aio app --- src/karapace/rapu.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/karapace/rapu.py b/src/karapace/rapu.py index 9d7671f3b..5e3bcf73a 100644 --- a/src/karapace/rapu.py +++ b/src/karapace/rapu.py @@ -172,9 +172,7 @@ def __init__( self.not_ready_handler = not_ready_handler def _create_aiohttp_application(self, *, config: Config) -> aiohttp.web.Application: - if config.http_request_max_size: - return aiohttp.web.Application(client_max_size=config.get_max_request_size()) - return aiohttp.web.Application() + return aiohttp.web.Application(client_max_size=config.get_max_request_size()) async def close_by_app(self, app: aiohttp.web.Application) -> None: await self.close()