Skip to content

Use standard HTTP/2 version name - #8371

Open
tospakX wants to merge 2 commits into
mitmproxy:mainfrom
tospakX:agent/standardize-http2-version
Open

Use standard HTTP/2 version name#8371
tospakX wants to merge 2 commits into
mitmproxy:mainfrom
tospakX:agent/standardize-http2-version

Conversation

@tospakX

@tospakX tospakX commented Aug 12, 2026

Copy link
Copy Markdown

Description

Fixes #7124.

New HTTP/2 requests and responses now use the standard HTTP/2 version string. Existing HTTP/2.0 flow data remains supported, and the ASGI adapter, web UI, and documentation accept the normalized value.

Validation:

  • uv run pytest test/mitmproxy/test_http.py test/mitmproxy/proxy/layers/http/test_http2.py test/mitmproxy/addons/test_asgiapp.py (152 passed)
  • uv run tox -e lint
  • npm test -- --runInBand (82 suites, 338 tests)

Checklist

  • I have updated tests where applicable.
  • I have added an entry to the CHANGELOG.

@tospakX
tospakX marked this pull request as ready for review August 12, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

http_version return HTTP/2 as HTTP/2.0

1 participant