From 74fca91e7832801f4e3f842ba5556e635ce0b0a8 Mon Sep 17 00:00:00 2001 From: chrisdare04 Date: Tue, 7 Apr 2015 15:51:03 +0100 Subject: [PATCH] socket absent from read_headers call in proxy_info class --- websocket/_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket/_http.py b/websocket/_http.py index 9a21d10..e456264 100644 --- a/websocket/_http.py +++ b/websocket/_http.py @@ -147,7 +147,7 @@ def _tunnel(sock, host, port, auth): send(sock, connect_header) try: - status, resp_headers = read_headers() + status, resp_headers = read_headers(sock) except Exception as e: raise WebSocketProxyException(str(e))