Skip to content

Commit 2a61111

Browse files
committed
Revert "update the synced copy in the repository"
This reverts commit 4f8186e.
1 parent 06e0be5 commit 2a61111

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

plotly/plotly/chunked_requests/chunked_request.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import time
22
import six
3-
import os
43
from six.moves import http_client
5-
from six.moves.urllib.parse import urlparse
4+
65

76
class Stream:
87
def __init__(self, server, port=80, headers={}, url='/'):
@@ -77,21 +76,7 @@ def _connect(self):
7776
server = self._server
7877
port = self._port
7978
headers = self._headers
80-
81-
## only doing HTTPConnection, so only use http_proxy
82-
proxy = os.environ.get("http_proxy");
83-
proxy_server = None
84-
proxy_port = None
85-
if (proxy != None):
86-
p = urlparse(proxy)
87-
proxy_server = p.hostname
88-
proxy_port = p.port
89-
90-
if (proxy_server != None and proxy_port != None):
91-
self._conn = http_client.HTTPConnection(proxy_server, proxy_port)
92-
self._conn.set_tunnel(server, port)
93-
else:
94-
self._conn = http_client.HTTPConnection(server, port)
79+
self._conn = http_client.HTTPConnection(server, port)
9580

9681
self._conn.putrequest('POST', self._url)
9782
self._conn.putheader('Transfer-Encoding', 'chunked')

0 commit comments

Comments
 (0)