mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
fix tests
This commit is contained in:
parent
e8611acb76
commit
985213a6bc
@ -73,7 +73,7 @@ class DumpMaster(flow.FlowMaster):
|
|||||||
|
|
||||||
self.set_stream_large_bodies(options.stream_large_bodies)
|
self.set_stream_large_bodies(options.stream_large_bodies)
|
||||||
|
|
||||||
if self.server.config.http2 and not tcp.HAS_ALPN: # pragma: no cover
|
if self.server and self.server.config.http2 and not tcp.HAS_ALPN: # pragma: no cover
|
||||||
print("ALPN support missing (OpenSSL 1.0.2+ required)!\n"
|
print("ALPN support missing (OpenSSL 1.0.2+ required)!\n"
|
||||||
"HTTP/2 is disabled. Use --no-http2 to silence this warning.",
|
"HTTP/2 is disabled. Use --no-http2 to silence this warning.",
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
|
Loading…
Reference in New Issue
Block a user