http_client: increase max body size

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-05-21 06:27:56 -04:00
parent 0164bb239e
commit f15ec23c3a
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 5 additions and 1 deletions

View File

@ -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/"