privoxy: Fix issue with privoxy diagnotic tests

The URL is always https:// so we only need https proxy and nothing else.
This commit is contained in:
Sunil Mohan Adapa 2016-06-01 20:27:30 +05:30 committed by James Valleroy
parent 4986d26b5d
commit 288a9e7bf9
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -102,10 +102,7 @@ def diagnose_url_with_proxy():
address['address'] = '[{0}]'.format(address['address'])
proxy = 'http://{host}:8118/'.format(host=address['address'])
if address['kind'] == '4':
env = {'http_proxy': proxy}
else:
env = {'https_proxy': proxy}
env = {'https_proxy': proxy}
result = action_utils.diagnose_url(url, kind=address['kind'], env=env)
result[0] = _('Access {url} with proxy {proxy} on tcp{kind}') \