nghttpx: Clear upgrade_request flag when Downstream is attached to HTTP/2 backend

This commit is contained in:
Tatsuhiro Tsujikawa 2016-02-28 23:21:57 +09:00
parent df6466cfbd
commit 5fbe4cc225
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ int Http2DownstreamConnection::attach_downstream(Downstream *downstream) {
downstream_ = downstream; downstream_ = downstream;
downstream_->reset_downstream_rtimer(); downstream_->reset_downstream_rtimer();
auto &req = downstream_->request();
// HTTP/2 disables HTTP Upgrade.
req.upgrade_request = false;
return 0; return 0;
} }