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 083d462 commit d0c63b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -43,6 +43,7 @@ func newBodyWriter(writer gin.ResponseWriter, maxSize int, recordBody bool) *bod
ResponseWriter: writer,
body: body,
maxSize: maxSize,
bytes: 0,
}
}

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

0 comments on commit d0c63b9

Please sign in to comment.