mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-29 20:55:03 +08:00
Add blank lines for lint
This commit is contained in:
@@ -27,6 +27,7 @@ import re
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=45891
|
||||
parse_host_header = re.compile(r"^(?P<host>[^:]+|\[.+\])(?::(?P<port>\d+))?$")
|
||||
|
||||
|
||||
class Rerouter:
|
||||
def __init__(self):
|
||||
self.hostHeader = None
|
||||
@@ -54,5 +55,6 @@ class Rerouter:
|
||||
flow.request.host = sni or host_header
|
||||
flow.request.port = port
|
||||
|
||||
|
||||
def start():
|
||||
return Rerouter()
|
||||
|
||||
Reference in New Issue
Block a user