mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
enable HTTP/2 by default
This commit is contained in:
parent
2735338815
commit
cc9e70e3cc
@ -453,12 +453,11 @@ def proxy_options(parser):
|
||||
)
|
||||
|
||||
http2 = group.add_mutually_exclusive_group()
|
||||
http2.add_argument("--http2", action="store_true", dest="http2")
|
||||
http2.add_argument("--no-http2", action="store_false", dest="http2",
|
||||
help="Explicitly enable/disable HTTP/2 support. "
|
||||
"Disabled by default until major websites implement the spec correctly. "
|
||||
"Default value will change in a future version."
|
||||
"Enabled by default."
|
||||
)
|
||||
http2.add_argument("--http2", action="store_true", dest="http2")
|
||||
|
||||
websocket = group.add_mutually_exclusive_group()
|
||||
websocket.add_argument("--no-websocket", action="store_false", dest="websocket",
|
||||
|
@ -26,8 +26,8 @@ function Footer({ settings }) {
|
||||
{rawtcp && (
|
||||
<span className="label label-success">raw-tcp</span>
|
||||
)}
|
||||
{http2 && (
|
||||
<span className="label label-success">http2</span>
|
||||
{!http2 && (
|
||||
<span className="label label-success">no-http2</span>
|
||||
)}
|
||||
{!websocket && (
|
||||
<span className="label label-success">no-websocket</span>
|
||||
|
Loading…
Reference in New Issue
Block a user