diff --git a/context/response_recorder.go b/context/response_recorder.go index 8acdfd1c..42831a18 100644 --- a/context/response_recorder.go +++ b/context/response_recorder.go @@ -167,8 +167,8 @@ func (w *ResponseRecorder) FlushResponse() { } if mustWriteToClose { - cw.CompressWriter.Close() cw.ResponseWriter.FlushResponse() + cw.CompressWriter.Close() } }