Skip to content

Commit 9c72abf

Browse files
committed
netloc parse
1 parent 1e94ecd commit 9c72abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pproxy/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
HTTP_LINE = re.compile('([^ ]+) +(.+?) +(HTTP/[^ ]+)$')
44
packstr = lambda s, n=1: len(s).to_bytes(n, 'big') + s
55

6-
def netloc_split(loc, default_port)
6+
def netloc_split(loc, default_port):
77
ipv6 = re.fullmatch('\[([0-9a-fA-F:]*)\](?::(\d+)?)?', loc)
88
if ipv6:
99
host_name, port = ipv6.groups()

0 commit comments

Comments
 (0)