Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Proxy configuration is not re-evaluated on redirects #1727
@Lukasa frankly, I don't understand the problem well. Proxies have always been your thing and I never attempted to get enough background on them.
So what Betamax does is replace the adapters that the Session object is using and then use a regular HTTPAdapter to make the actual request if necessary. The reason I'm not certain, is because of [
Betamax looks at the Prepared Request that comes through and then matches that against previously recorded (if any) requests to find an appropriate response. Because of how requests handles redirects, even redirects are recorded properly. If the logic you're looking for happens outside of the HTTPAdapter (any of the layers above it), Betamax can probably help so long as the info is on the Prepared Request. If it happens underneath the covers of the HTTPAdapter, then the answer is still "maybe" because the request may have the data you're looking for, but I'm not certain.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
This appears to get handled now via
(via 4d8cb32, should be 2.3.0)