Increase max line size for ingress addons (#85775)

pull/85762/head^2
Mike Degatano 2023-01-13 07:30:28 -05:00 committed by GitHub
parent d748894b88
commit 87aacf9fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -74,6 +74,7 @@ DEFAULT_CORS: Final[list[str]] = ["https://cast.home-assistant.io"]
NO_LOGIN_ATTEMPT_THRESHOLD: Final = -1
MAX_CLIENT_SIZE: Final = 1024**2 * 16
MAX_LINE_SIZE: Final = 24570
STORAGE_KEY: Final = DOMAIN
STORAGE_VERSION: Final = 1
@ -234,7 +235,14 @@ class HomeAssistantHTTP:
ssl_profile: str,
) -> None:
"""Initialize the HTTP Home Assistant server."""
self.app = web.Application(middlewares=[], client_max_size=MAX_CLIENT_SIZE)
self.app = web.Application(
middlewares=[],
client_max_size=MAX_CLIENT_SIZE,
handler_args={
"max_line_size": MAX_LINE_SIZE,
"max_field_size": MAX_LINE_SIZE,
},
)
self.hass = hass
self.ssl_certificate = ssl_certificate
self.ssl_peer_certificate = ssl_peer_certificate