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; }