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

Commit b779e33

Browse files
committed
to_host_port_tuple should strip bracket for IPv6 addresses for returned host
1 parent a4480c1 commit b779e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyper/common/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def to_host_port_tuple(host_port_str, default_port=80):
3939
query=None,
4040
fragment=None)
4141

42-
host = uri.host
42+
host = uri.host.strip('[]')
4343
if not uri.port:
4444
port = default_port
4545
else:

0 commit comments

Comments
 (0)