Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Added changes to support chromium downloading behind an http proxy. #216

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

bwacek
Copy link

@bwacek bwacek commented May 14, 2019

If you're stuck behind a proxy, it can be very difficult to make the existing downloader work. These simple changes will allow the system to pick up the very common $http_proxy environmental variable commonly used on Linux to control proxy usage for applications.

logger.info('Not using a proxy...')
conn = urllib3.PoolManager()
else:
logger.info('Using proxy: %s' % HTTP_PROXY)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else branch will only be executed when HTTP_PROXY is the empty string. I presume you want to invert the condition. Did you test this change?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants