Skip to content

fix: force http/1.1 ALPN on secure web proxy outer TLS#8204

Open
emanuele-em wants to merge 2 commits into
mitmproxy:mainfrom
emanuele-em:fix/8192-secure-web-proxy-alpn
Open

fix: force http/1.1 ALPN on secure web proxy outer TLS#8204
emanuele-em wants to merge 2 commits into
mitmproxy:mainfrom
emanuele-em:fix/8192-secure-web-proxy-alpn

Conversation

@emanuele-em

Copy link
Copy Markdown
Member

Description

Replaced the stale layer-count guard with a server.address is None check HttpUpstreamProxy

Closes #8192

Checklist

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

@emanuele-em emanuele-em requested a review from mhils May 1, 2026 08:34
modes.HttpProxy(ctx),
proxy_tls.ClientTLSLayer(ctx),
proxy_http.HttpLayer(ctx, proxy_http.HTTPMode.regular),
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How hard would it be to create a test that tests actual behavior and not mocks?

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.

Secure web proxy negotiates h2 ALPN with client, breaking HTTP/1.1 CONNECT

2 participants