Skip to content

Commit

Permalink
fix: max request size always set to aio app
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Jan 15, 2025
1 parent bc04340 commit a19605a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/karapace/rapu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a19605a

Please sign in to comment.