Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit a598c39

Browse files
committed
Fix proxy port used in connect
1 parent c2ff27c commit a598c39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hyper/http11/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def connect(self):
115115
port = self.port
116116
else:
117117
host = self.proxy_host
118-
port = self.proxy_host
118+
port = self.proxy_port
119119

120120
sock = socket.create_connection((host, port), 5)
121121
proto = None

hyper/http20/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def connect(self):
244244
port = self.port
245245
else:
246246
host = self.proxy_host
247-
port = self.proxy_host
247+
port = self.proxy_port
248248

249249
sock = socket.create_connection((host, port), 5)
250250

test/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def socket_handler(listener):
524524
h.data = self.get_encoder().encode(
525525
{':status': 200,
526526
'Content-Type': 'not/real',
527-
'Content-Length': 14,
527+
'Content-Length': 12,
528528
'Server': 'socket-level-server'}
529529
)
530530
h.flags.add('END_HEADERS')

0 commit comments

Comments
 (0)