From d0c63b933e907d8d7b482d2547576b21b6469675 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sat, 20 Jan 2024 19:22:20 +0100 Subject: [PATCH] :lipstick: --- dump.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dump.go b/dump.go index af1c6f6..8a80f19 100644 --- a/dump.go +++ b/dump.go @@ -29,7 +29,7 @@ func (w bodyWriter) Write(b []byte) (int, error) { } } - w.bytes += len(b) + w.bytes += len(b) //nolint:staticcheck return w.ResponseWriter.Write(b) } @@ -43,6 +43,7 @@ func newBodyWriter(writer gin.ResponseWriter, maxSize int, recordBody bool) *bod ResponseWriter: writer, body: body, maxSize: maxSize, + bytes: 0, } } @@ -77,5 +78,6 @@ func newBodyReader(reader io.ReadCloser, maxSize int, recordBody bool) *bodyRead ReadCloser: reader, body: body, maxSize: maxSize, + bytes: 0, } }