mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:03:52 +02:00
Handle https proxies specified with a http:// URL
This commit is contained in:
parent
ae4840a88c
commit
d1930a1ea0
1 changed files with 2 additions and 0 deletions
|
|
@ -278,6 +278,8 @@ def get_proxies(debug=True):
|
|||
continue
|
||||
if proxy.startswith(key+'://'):
|
||||
proxy = proxy[len(key)+3:]
|
||||
if key == 'https' and proxy.startswith('http://'):
|
||||
proxy = proxy[7:]
|
||||
if proxy.endswith('/'):
|
||||
proxy = proxy[:-1]
|
||||
if len(proxy) > 4:
|
||||
|
|
|
|||
Loading…
Reference in a new issue