Skip to content

httpclient: Reject auth and headers in AsyncHTTPClient defaults - #3936

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/project-thread-eoml46
Nov 25, 2026
Merged

bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:claude/project-thread-eoml46

Conversation

@bdarnell

Copy link
Copy Markdown
Member

Credentials in the client-level defaults were sent with every request, including to the target of a cross-origin redirect (where request-level credentials are stripped). Rather than give defaults different semantics on redirects, make it an error to set auth_username or auth_password there; pass credentials with each request instead.

Default headers have never worked, since every request has its own headers object and _RequestProxy only falls back to defaults for None (#2839). Reject them too instead of silently ignoring them.

Claude-Session: https://claude.ai/code/session_01VamvWoYWj1JiKa2j3tWtGh

Credentials in the client-level defaults were sent with every request,
including to the target of a cross-origin redirect (where request-level
credentials are stripped). Rather than give defaults different semantics
on redirects, make it an error to set auth_username or auth_password
there; pass credentials with each request instead.

Default headers have never worked, since every request has its own
headers object and _RequestProxy only falls back to defaults for None
(tornadoweb#2839). Reject them too instead of silently ignoring them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VamvWoYWj1JiKa2j3tWtGh
@bdarnell
bdarnell merged commit d0e4d79 into tornadoweb:master Nov 25, 2026
23 checks passed
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.

1 participant