mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-07 06:36:59 +08:00
Update response_writer.go
This commit is contained in:
parent
9555743a47
commit
83be301525
@ -122,6 +122,6 @@ func (w *responseWriter) ReadFrom(r io.Reader) (n int64, err error) {
|
|||||||
w.size = 0
|
w.size = 0
|
||||||
}
|
}
|
||||||
n, err = w.ResponseWriter.(io.ReaderFrom).ReadFrom(r)
|
n, err = w.ResponseWriter.(io.ReaderFrom).ReadFrom(r)
|
||||||
w.size += n
|
w.size += int(n)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user