net/http/httputil: ReverseProxy implicitly requires http.Flusher with streaming #64045
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
httputil.ReverseProxy
requires that the usedhttp.ResponseWriter
implementshttp.Flush
in order to proxy SSE.I have a situation where the original response writer is wrapped with the following code in order to record the written status code for logging:
What did you expect to see?
SSE events landing to the client or mention about the
http.Flush
requirement in the reverse proxy's documentation.What did you see instead?
SSE events were lost.
Similar issue: #27816
The text was updated successfully, but these errors were encountered: