Fix SSE timeout will affected by http.Server 's WriteTimeout (#5024)

Co-authored-by: csbzy <chenshaobo65@mail.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
csbzy
2025-07-23 23:04:45 +08:00
committed by GitHub
parent b011a072c7
commit 0be63c3625
2 changed files with 11 additions and 0 deletions

View File

@@ -59,3 +59,8 @@ func (w *WithCodeResponseWriter) WriteHeader(code int) {
w.Writer.WriteHeader(code)
w.Code = code
}
// Unwrap returns the underlying ResponseWriter.
func (w *WithCodeResponseWriter) Unwrap() http.ResponseWriter {
return w.Writer
}