Skip to content

Commit dbdb412

Browse files
committed
feat: fix bodyWriter
1 parent 1d64e8b commit dbdb412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type bodyWriter struct {
2020
}
2121

2222
// implements gin.ResponseWriter
23-
func (w bodyWriter) Write(b []byte) (int, error) {
23+
func (w *bodyWriter) Write(b []byte) (int, error) {
2424
if w.body != nil {
2525
if w.body.Len()+len(b) > w.maxSize {
2626
w.body.Write(b[:w.maxSize-w.body.Len()])

0 commit comments

Comments
 (0)