diff --git a/moonraker/components/http_client.py b/moonraker/components/http_client.py index 8d4d2f2..fb7bcc9 100644 --- a/moonraker/components/http_client.py +++ b/moonraker/components/http_client.py @@ -32,7 +32,11 @@ if TYPE_CHECKING: from io import BufferedWriter StrOrPath = Union[str, pathlib.Path] -AsyncHTTPClient.configure(None, defaults=dict(user_agent="Moonraker")) +MAX_BODY_SIZE = 512 * 1024 * 1024 +AsyncHTTPClient.configure( + None, defaults=dict(user_agent="Moonraker"), + max_body_size=MAX_BODY_SIZE +) GITHUB_PREFIX = "https://api.github.com/"