Closed twm closed 3 years ago
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 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.