Skip to content

Commit

Permalink
fix body buffer dump
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Jan 20, 2024
1 parent a5c37a8 commit 19be560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *bodyReader) Read(b []byte) (int, error) {
if r.body.Len()+n > r.maxSize {
r.body.Write(b[:r.maxSize-r.body.Len()])
} else {
r.body.Write(b)
r.body.Write(b[:n])
}
}
r.bytes += n
Expand Down

0 comments on commit 19be560

Please sign in to comment.