summaryrefslogtreecommitdiff
path: root/websocket
diff options
context:
space:
mode:
authorliris <liris.pp@gmail.com>2018-11-01 13:13:17 +0900
committerliris <liris.pp@gmail.com>2018-11-01 13:13:17 +0900
commit102033e44bcc9badf85c78769516d3f9127ebdc7 (patch)
treea0dfd008b99d76d436b2df435a0d74ed61de3c87 /websocket
parent1ac65e34bece850932250acbdffecf26f62f3d74 (diff)
downloadwebsocket-client-102033e44bcc9badf85c78769516d3f9127ebdc7.tar.gz
fixed #497 proxy issuev0.54.0
Diffstat (limited to 'websocket')
-rw-r--r--websocket/_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket/_http.py b/websocket/_http.py
index fe97480..e7f1e2e 100644
--- a/websocket/_http.py
+++ b/websocket/_http.py
@@ -51,7 +51,7 @@ except:
class proxy_info(object):
def __init__(self, **options):
- self.type = options.get("proxy_type", "http")
+ self.type = options.get("proxy_type") or "http"
if not(self.type in ['http', 'socks4', 'socks5', 'socks5h']):
raise ValueError("proxy_type must be 'http', 'socks4', 'socks5' or 'socks5h'")
self.host = options.get("http_proxy_host", None)