mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem
This commit is contained in:
@@ -345,3 +345,15 @@ func (w *CompressResponseWriter) WriteTo(dest io.Writer, p []byte) (int, error)
|
||||
cw.Close()
|
||||
return n, err
|
||||
}
|
||||
|
||||
// Reset implements the ResponseWriterReseter interface.
|
||||
func (w *CompressResponseWriter) Reset() bool {
|
||||
if w.Disabled {
|
||||
// If it's disabled then the underline one is responsible.
|
||||
rs, ok := w.ResponseWriter.(ResponseWriterReseter)
|
||||
return ok && rs.Reset()
|
||||
}
|
||||
|
||||
w.CompressWriter.Reset(w.ResponseWriter)
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user