diff --git a/docs/content/2026-news.md b/docs/content/2026-news.md index 31a0a96d..d4143521 100644 --- a/docs/content/2026-news.md +++ b/docs/content/2026-news.md @@ -5,9 +5,9 @@ ### New Features -- **Fast HTTP Parser (gunicorn_h1c 0.4.1)**: Integrate new exception types and limit - parameters from gunicorn_h1c 0.4.1 for both WSGI and ASGI workers - - Requires gunicorn_h1c >= 0.4.1 for `http_parser='fast'` +- **Fast HTTP Parser (gunicorn_h1c 0.6.0)**: Integrate new exception types and limit + parameters from gunicorn_h1c 0.6.0 for both WSGI and ASGI workers + - Requires gunicorn_h1c >= 0.6.0 for `http_parser='fast'` - Falls back to Python parser in `auto` mode if version not met - Proper HTTP status codes for limit errors (414, 431) diff --git a/docs/content/news.md b/docs/content/news.md index 7aeb1448..5ac5b76e 100644 --- a/docs/content/news.md +++ b/docs/content/news.md @@ -5,9 +5,9 @@ ### New Features -- **Fast HTTP Parser (gunicorn_h1c 0.4.1)**: Integrate new exception types and limit - parameters from gunicorn_h1c 0.4.1 for both WSGI and ASGI workers - - Requires gunicorn_h1c >= 0.4.1 for `http_parser='fast'` +- **Fast HTTP Parser (gunicorn_h1c 0.6.0)**: Integrate new exception types and limit + parameters from gunicorn_h1c 0.6.0 for both WSGI and ASGI workers + - Requires gunicorn_h1c >= 0.6.0 for `http_parser='fast'` - Falls back to Python parser in `auto` mode if version not met - Proper HTTP status codes for limit errors (414, 431) diff --git a/pyproject.toml b/pyproject.toml index 2532c830..ba579434 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.4.1"] +fast = ["gunicorn_h1c>=0.6.0"] testing = [ "gevent>=24.10.1", "eventlet>=0.40.3", diff --git a/requirements_test.txt b/requirements_test.txt index 98e266d8..3093c4e6 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.4.1 +gunicorn_h1c>=0.6.0 diff --git a/tests/conftest.py b/tests/conftest.py index 56509c95..018ffbc5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,7 +21,7 @@ def http_parser(request): """Parametrize tests over http_parser implementations.""" if request.param == "fast": gunicorn_h1c = pytest.importorskip("gunicorn_h1c", reason="gunicorn_h1c required") - # Require >= 0.4.1 for limit enforcement - if not hasattr(gunicorn_h1c, 'LimitRequestLine'): - pytest.skip("gunicorn_h1c >= 0.4.1 required") + # Require >= 0.6.0 for header framing validation + if not hasattr(gunicorn_h1c, 'InvalidHeader'): + pytest.skip("gunicorn_h1c >= 0.6.0 required") return request.param