mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-09 03:42:01 -04:00
tsweb: implement FlushError on loggingResponseWriter
http.ResponseController.Flush prefers a FlushError method at each level of the ResponseWriter wrapper chain and falls back to Flusher.Flush, which can't report an error. loggingResponseWriter only had Flush, so handlers using ResponseController to flush never saw the underlying writer's flush errors, such as a stream reset by an expired write deadline. Add FlushError that delegates via ResponseController so errors from the wrapped writer propagate. Updates tailscale/corp#48531 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: I259c5de234435f632387261165fe15dcaf34ff45
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f