You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not immediately obvious what's the problem here, but HTTP/2 headers may only be lowercase. We are smart enough to automatically fix that for requests that we received as HTTP/1, but otherwise we intentionally just keep things as-is. This is hard to debug for addon authors, we should emit a warning if we see uppercase HTTP/2 headers being sent.
Why do we intentionally just keep things as-is?
Why not apply the same smartness by default, and maybe provide a --strict mode or similar? Less surprises for most users, and for the advanced users, they can opt into a strict mode for tinkering with the protocols.
Activity
Kriechi commentedon Aug 13, 2021
Why do we intentionally just keep things as-is?
Why not apply the same smartness by default, and maybe provide a
--strictmode or similar? Less surprises for most users, and for the advanced users, they can opt into a strict mode for tinkering with the protocols.mhils commentedon Aug 18, 2021
Fair point. Let's add an option and normalize by default.
lowercase user-added HTTP/2 headers, fix mitmproxy#4746
lowercase user-added HTTP/2 headers, fix #4746 (#5186)