We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The agent returned by treq.auth.add_basic_auth (and therefore treq.add_auth, and therefore treq.request()) mutates any Headers instance passed to it.
treq.auth.add_basic_auth
treq.add_auth
treq.request()
Headers
This is surprising. Doubly so, given that the wrapper agent's own implementation assumes that the agent it wraps doesn't mutate the headers.
The text was updated successfully, but these errors were encountered:
treq.auth: Don't mutate request headers
1fba8e0
Instead, copy and update. Closes twisted#314.
twm
Successfully merging a pull request may close this issue.
The agent returned by
treq.auth.add_basic_auth
(and thereforetreq.add_auth
, and thereforetreq.request()
) mutates anyHeaders
instance passed to it.This is surprising. Doubly so, given that the wrapper agent's own implementation assumes that the agent it wraps doesn't mutate the headers.
The text was updated successfully, but these errors were encountered: