From 10e773d25a9bc4e839e3a6d6d9656fd85f7cfb46 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 23 Jun 2022 10:06:08 +0200 Subject: [PATCH] Use `DEFAULT_MAX_INCOMPLETE_EVENT_SIZE` as default to `h11_max_incomplete_event_size` on the CLI --- uvicorn/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvicorn/main.py b/uvicorn/main.py index ac6096722..58e01305a 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(