1
0
mirror of https://github.com/kataras/iris.git synced 2026-08-08 21:49:08 +00:00

Release version 12.2.0-beta2

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-05-09 03:01:34 +03:00
parent d989044054
commit 02077a01fa
9 changed files with 88 additions and 7 deletions
+5
View File
@@ -143,6 +143,11 @@ func (w *ResponseRecorder) ClearHeaders() {
// Reset clears headers, sets the status code to 200
// and clears the cached body.
//
// - Use ResetBody() and ResetHeaders() instead to keep compression after reseting.
//
// - Use Reset() & ResponseRecorder.ResponseWriter.(*context.CompressResponseWriter).Disabled = true
// to set a new body without compression when the previous handler was iris.Compression.
//
// Implements the `ResponseWriterReseter`.
func (w *ResponseRecorder) Reset() bool {
w.ClearHeaders()