nghttpx: Fix bug that proxy with HTTP/1.1 CONNECT did not work

This was a regression in 5fbe4cc225.
This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-28 22:05:38 +09:00
parent 402eccf06d
commit ff07018720
1 changed files with 3 additions and 1 deletions

View File

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