net/http/httputil: ReverseProxy.handleUpgradeResponse should copy response header back to http.ResponseWriter #41634
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
In the
ReverseProxy.ServeHTTP
, we should always copy the response header returned by the upstream back to ourhttp.ResponseWriter
(when everything is fine). But currently we've missed this point in the implementation of WebSocket reverse proxy, which may affect users. For example, someone may want to log response headers in their middleware.The text was updated successfully, but these errors were encountered: