Skip to content

Commit

Permalink
fix https requests with proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo DELVAL committed Jun 7, 2016
1 parent 6f9ebf8 commit 4e31d2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/requests/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ def do_check(url):
if check_proxy == True:
sys.stdout.write("[" + Fore.GREEN + " SUCCEED " + Style.RESET_ALL + " ]\n")
sys.stdout.flush()

# Check if defined "--force-ssl" option AND "--proxy" option.
# We then force the proxy to https
if menu.options.force_ssl and menu.options.proxy:
settings.PROXY_PROTOCOL = 'https'
else:
print "[" + Fore.RED + " FAILED " + Style.RESET_ALL + "]"
err_msg = "Could not connect to proxy."
Expand Down

0 comments on commit 4e31d2c

Please sign in to comment.