From cc9e70e3ccf1975099d6dc6e2d8a0f5b4b17a898 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 26 Dec 2016 21:51:10 +0100 Subject: [PATCH] enable HTTP/2 by default --- mitmproxy/tools/cmdline.py | 5 ++--- web/src/js/components/Footer.jsx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mitmproxy/tools/cmdline.py b/mitmproxy/tools/cmdline.py index a8f04f8da..d0b53b2c8 100644 --- a/mitmproxy/tools/cmdline.py +++ b/mitmproxy/tools/cmdline.py @@ -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", diff --git a/web/src/js/components/Footer.jsx b/web/src/js/components/Footer.jsx index ee26dad2a..7c7e77705 100644 --- a/web/src/js/components/Footer.jsx +++ b/web/src/js/components/Footer.jsx @@ -26,8 +26,8 @@ function Footer({ settings }) { {rawtcp && ( raw-tcp )} - {http2 && ( - http2 + {!http2 && ( + no-http2 )} {!websocket && ( no-websocket