diff --git a/src/shrpx_http2_downstream_connection.cc b/src/shrpx_http2_downstream_connection.cc index 6aa97d1f..b5accaa2 100644 --- a/src/shrpx_http2_downstream_connection.cc +++ b/src/shrpx_http2_downstream_connection.cc @@ -105,6 +105,11 @@ int Http2DownstreamConnection::attach_downstream(Downstream *downstream) { downstream_ = downstream; downstream_->reset_downstream_rtimer(); + auto &req = downstream_->request(); + + // HTTP/2 disables HTTP Upgrade. + req.upgrade_request = false; + return 0; }