mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Set body size for Proxy / streams to 16mb (#30608)
This commit is contained in:
parent
9ebf5ea413
commit
a4c1114c8e
@ -54,6 +54,8 @@ DEFAULT_DEVELOPMENT = "0"
|
|||||||
DEFAULT_CORS = "https://cast.home-assistant.io"
|
DEFAULT_CORS = "https://cast.home-assistant.io"
|
||||||
NO_LOGIN_ATTEMPT_THRESHOLD = -1
|
NO_LOGIN_ATTEMPT_THRESHOLD = -1
|
||||||
|
|
||||||
|
MAX_CLIENT_SIZE: int = 1024 ** 2 * 16
|
||||||
|
|
||||||
|
|
||||||
HTTP_SCHEMA = vol.Schema(
|
HTTP_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
@ -188,7 +190,9 @@ class HomeAssistantHTTP:
|
|||||||
ssl_profile,
|
ssl_profile,
|
||||||
):
|
):
|
||||||
"""Initialize the HTTP Home Assistant server."""
|
"""Initialize the HTTP Home Assistant server."""
|
||||||
app = self.app = web.Application(middlewares=[])
|
app = self.app = web.Application(
|
||||||
|
middlewares=[], client_max_size=MAX_CLIENT_SIZE
|
||||||
|
)
|
||||||
app[KEY_HASS] = hass
|
app[KEY_HASS] = hass
|
||||||
|
|
||||||
# This order matters
|
# This order matters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user