Commit a4f998b
Cursor
fix(urllib3): send Proxy-Authorization from credentials in proxy URL
urllib3.ProxyManager does not derive CONNECT auth from user:pass in the URL;
requests supplies it via HTTPAdapter.proxy_headers(). Without it, authenticated
proxies return 407 and retries surface as "407 too many failures".
Merge URL userinfo into proxy_headers the same way, without overriding an
explicit Proxy-Authorization header.
Made-with: Cursor1 parent 3a0a3c6 commit a4f998b
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
131 | 149 | | |
132 | 150 | | |
133 | 151 | | |
| |||
0 commit comments