fix(deps): update module github.com/gorilla/handlers to v1.5.2

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2023-11-13 17:03:40 +00:00
committed by GitHub
parent a9a74dada2
commit 669829447a
15 changed files with 161 additions and 98 deletions

View File

@ -44,13 +44,13 @@ type flusher interface {
Flush() error
}
func (w *compressResponseWriter) Flush() {
func (cw *compressResponseWriter) Flush() {
// Flush compressed data if compressor supports it.
if f, ok := w.compressor.(flusher); ok {
f.Flush()
if f, ok := cw.compressor.(flusher); ok {
_ = f.Flush()
}
// Flush HTTP response.
if f, ok := w.w.(http.Flusher); ok {
if f, ok := cw.w.(http.Flusher); ok {
f.Flush()
}
}