Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Jan 20, 2024
1 parent 26d6800 commit a5c37a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func (w bodyWriter) Write(b []byte) (int, error) {
w.body.Write(b)
}
}
w.bytes += len(b)

w.bytes += len(b) //nolint:staticcheck
return w.ResponseWriter.Write(b)
}

Expand Down Expand Up @@ -59,6 +60,7 @@ func newBodyWriter(writer http.ResponseWriter, maxSize int, recordBody bool) *bo
ResponseWriter: writer,
body: body,
maxSize: maxSize,
bytes: 0,
}
}

Expand Down Expand Up @@ -93,5 +95,6 @@ func newBodyReader(reader io.ReadCloser, maxSize int, recordBody bool) *bodyRead
ReadCloser: reader,
body: body,
maxSize: maxSize,
bytes: 0,
}
}

0 comments on commit a5c37a8

Please sign in to comment.