fallbackResponseWriter implement Flush()

This commit is contained in:
Justin Moon 2025-04-26 13:25:44 -05:00
commit 754a41537a

View file

@ -71,3 +71,10 @@ func (fw *fallbackResponseWriter) WriteHeader(statusCode int) {
fw.rw.WriteHeader(statusCode)
}
// Flush implements the http.Flusher interface.
func (rw *fallbackResponseWriter) Flush() {
if f, ok := rw.rw.(http.Flusher); ok {
f.Flush()
}
}