fix body buffer dump

This commit is contained in:
Samuel Berthe
2024-01-20 23:17:13 +01:00
parent d0c63b933e
commit 6ce25f034a
+1 -1
View File
@@ -61,7 +61,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