nghttpx: Fix bug that h2 is used while there is no h2 backend
This commit is contained in:
parent
e0491c2ee8
commit
26eb983cf0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue