From ddb7275f7e72dbfbf5e240c4a97e34388c4235c2 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 23 Jun 2022 10:18:13 +0200 Subject: [PATCH] Use `DEFAULT_MAX_INCOMPLETE_EVENT_SIZE` as default to `h11_max_incomplete_event_size` on the CLI (#1534) --- uvicorn/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvicorn/main.py b/uvicorn/main.py index ac60967220..58e01305a0 100644 --- a/uvicorn/main.py +++ b/uvicorn/main.py @@ -346,7 +346,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No "--h11-max-incomplete-event-size", "h11_max_incomplete_event_size", type=int, - default=None, + default=DEFAULT_MAX_INCOMPLETE_EVENT_SIZE, help="For h11, the maximum number of bytes to buffer of an incomplete event.", ) @click.option(