Commit 7f59773
download: Add proxy support
Our use of cavaliercoder/grab relies on the http_proxy/https_proxy
environment variables to make use of proxies.
This has been causing issues in the past (see 'proxy: Use our own http
transport with crc's proxy config'), and this is also not enough when
a proxy accessed over https is used, and usage of proxy-ca-file is
needed.
This commit makes use of the recently introduced network.HTTPTransport()
to solve this.1 parent b50dc99 commit 7f59773
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments