mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Simplify
We only change req_.upgrade_request once, so just using else is suffice.
This commit is contained in:
@@ -677,9 +677,7 @@ void Downstream::inspect_http2_request() {
|
||||
void Downstream::inspect_http1_request() {
|
||||
if (req_.method == HTTP_CONNECT) {
|
||||
req_.upgrade_request = true;
|
||||
}
|
||||
|
||||
if (!req_.upgrade_request) {
|
||||
} else {
|
||||
auto upgrade = req_.fs.header(http2::HD_UPGRADE);
|
||||
if (upgrade) {
|
||||
const auto &val = upgrade->value;
|
||||
|
||||
Reference in New Issue
Block a user