nghttpx: Fix bug that proxy with HTTP/1.1 CONNECT did not work
This was a regression in 5fbe4cc225
.
This commit is contained in:
parent
402eccf06d
commit
ff07018720
|
@ -108,7 +108,9 @@ int Http2DownstreamConnection::attach_downstream(Downstream *downstream) {
|
|||
auto &req = downstream_->request();
|
||||
|
||||
// HTTP/2 disables HTTP Upgrade.
|
||||
req.upgrade_request = false;
|
||||
if (req.method != HTTP_CONNECT) {
|
||||
req.upgrade_request = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue