From 98eac0b04e52aac6ed2757dd541efd2b5f4a1fc6 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Mon, 20 Apr 2026 07:29:47 +0200 Subject: [PATCH] chore: require gunicorn_h1c >=0.6.5 and drop last python_only marker gunicorn_h1c 0.6.5 ships the Content-Length list-form rejection (h1c #8). The last python_only marker can now come off rfc9112_smuggle_cl_list_form_01. --- pyproject.toml | 2 +- requirements_test.txt | 2 +- tests/requests/invalid/rfc9112_smuggle_cl_list_form_01.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3212111b..f6c26b4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ tornado = ["tornado>=6.5.0"] gthread = [] setproctitle = ["setproctitle"] http2 = ["h2>=4.1.0"] -fast = ["gunicorn_h1c>=0.6.4"] +fast = ["gunicorn_h1c>=0.6.5"] testing = [ "gevent>=24.10.1", "eventlet>=0.40.3", diff --git a/requirements_test.txt b/requirements_test.txt index 40e28207..b1abc181 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -3,4 +3,4 @@ coverage pytest>=7.2.0 pytest-cov pytest-asyncio -gunicorn_h1c>=0.6.4 +gunicorn_h1c>=0.6.5 diff --git a/tests/requests/invalid/rfc9112_smuggle_cl_list_form_01.py b/tests/requests/invalid/rfc9112_smuggle_cl_list_form_01.py index 1248f585..54b5dbee 100644 --- a/tests/requests/invalid/rfc9112_smuggle_cl_list_form_01.py +++ b/tests/requests/invalid/rfc9112_smuggle_cl_list_form_01.py @@ -8,5 +8,3 @@ # CL list variant. from gunicorn.http.errors import InvalidHeader request = InvalidHeader -# The C parser (gunicorn_h1c) does not yet enforce this rule. -python_only = True