nghttpx: Clear upgrade_request flag when Downstream is attached to HTTP/2 backend
This commit is contained in:
parent
df6466cfbd
commit
5fbe4cc225
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue