enable HTTP/2 by default

This commit is contained in:
Thomas Kriechbaumer 2016-12-26 21:51:10 +01:00
parent 2735338815
commit cc9e70e3cc
2 changed files with 4 additions and 5 deletions

View File

@ -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",

View File

@ -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>