From 13db0e5c70bd3e3b823b1351d81b6710ad513239 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Mon, 25 Jul 2022 09:04:27 -0400 Subject: [PATCH] Increase max line size for ingress addons (#3747) * Increase max line size for ingress addons * Set max field size too --- supervisor/api/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/supervisor/api/__init__.py b/supervisor/api/__init__.py index cb6e74af235..51fc3f11ac1 100644 --- a/supervisor/api/__init__.py +++ b/supervisor/api/__init__.py @@ -36,6 +36,7 @@ MAX_CLIENT_SIZE: int = 1024**2 * 16 +MAX_LINE_SIZE: int = 24570 class RestAPI(CoreSysAttributes): @@ -51,6 +52,10 @@ def __init__(self, coresys: CoreSys): self.security.system_validation, self.security.token_validation, ], + handler_args={ + "max_line_size": MAX_LINE_SIZE, + "max_field_size": MAX_LINE_SIZE, + }, ) # service stuff