nghttpx: Fix bug that h2 is used while there is no h2 backend

This commit is contained in:
Tatsuhiro Tsujikawa 2016-05-26 00:14:11 +09:00
parent e0491c2ee8
commit 26eb983cf0
1 changed files with 1 additions and 1 deletions

View File

@ -873,7 +873,7 @@ ClientHandler::get_downstream_connection(Downstream *downstream) {
} }
} else if (http1_weight > 0) { } else if (http1_weight > 0) {
proto = PROTO_HTTP1; proto = PROTO_HTTP1;
} else { } else if (http2_weight > 0) {
proto = PROTO_HTTP2; proto = PROTO_HTTP2;
} }