From 26eb983cf0c5fee10f002b6d6641c1b937ee1417 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 May 2016 00:14:11 +0900 Subject: [PATCH] nghttpx: Fix bug that h2 is used while there is no h2 backend --- src/shrpx_client_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_client_handler.cc b/src/shrpx_client_handler.cc index c86624d5..a2083b38 100644 --- a/src/shrpx_client_handler.cc +++ b/src/shrpx_client_handler.cc @@ -873,7 +873,7 @@ ClientHandler::get_downstream_connection(Downstream *downstream) { } } else if (http1_weight > 0) { proto = PROTO_HTTP1; - } else { + } else if (http2_weight > 0) { proto = PROTO_HTTP2; }