Skip to content

Commit 4444f01

Browse files
authored
Merge pull request #268 from rstudio/bcwu-relax-https-proxy
change HTTPS_PROXY exception to warning
2 parents 7b532ae + b1b38f0 commit 4444f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rsconnect/http_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import socket
66
import ssl
77
import os
8-
8+
from warnings import warn
99
from . import VERSION
1010
from .log import logger
1111
from six.moves import http_client as http
@@ -39,7 +39,7 @@ def _get_proxy():
3939
return None, None, None, None
4040
parsed = urlparse(proxyURL)
4141
if parsed.scheme not in ["https"]:
42-
raise Exception("HTTPS_PROXY scheme must be https://")
42+
warn("HTTPS_PROXY scheme is not using https")
4343
redacted_url = "{}://".format(parsed.scheme)
4444
if parsed.username:
4545
redacted_url += "{}:{}@".format(parsed.username, "REDACTED")

0 commit comments

Comments
 (0)