Skip to content

FetchHTTP2: Remove HttpClient default auth protocol handlers#719

Open
ato wants to merge 3 commits intomasterfrom
ato/FetchHTTP2-remove-auth-protocol-handlers
Open

FetchHTTP2: Remove HttpClient default auth protocol handlers#719
ato wants to merge 3 commits intomasterfrom
ato/FetchHTTP2-remove-auth-protocol-handlers

Conversation

@ato
Copy link
Copy Markdown
Collaborator

@ato ato commented Mar 9, 2026

WWWAuthenticationProtocolHandler and ProxyAuthenticationProtocolHandler unhelpfully throw exceptions if a 401 or 407 response has a larger than 16KB body or is missing the appropriate -Authenticate header.

FetchHTTP2 doesn't yet support HTTP auth, and therefore they aren't currently being used, so let's just remove them for now. This also adds regression tests so that we don't accidentally reintroduce this if in future we implement auth support.

Fixes #714
Fixes #717

ato added 3 commits March 9, 2026 22:44
WWWAuthenticationProtocolHandler and ProxyAuthenticationProtocolHandler unhelpfully throw exceptions if a 401 or 407 response has a larger than 16KB body or is missing the appropriate -Authenticate header.

FetchHTTP2 doesn't yet support HTTP auth, thus they aren't currently being used, so let's just remove them for now. This also adds regression tests so that if in the future we implement auth support, we don't accidentally reintroduce this.

Fixes #714
Fixes #717
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.

FetchHTTP2: Buffering capacity 16384 exceeded FetchHTTP2 throws on 401 responses without WWW-Authenticate header

1 participant