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()