This commit is contained in:
Aliaksandr Valialkin
2015-12-08 10:45:16 +02:00
parent 3072afc5e7
commit 5c8ab236b8
+1 -1
View File
@@ -562,7 +562,7 @@ func writeBodyFixedSize(w *bufio.Writer, r io.Reader, size int) error {
lr.R = r
lr.N = int64(size)
n, err := copyZeroAlloc(w, r)
n, err := copyZeroAlloc(w, lr)
lr.R = nil
limitedReaderPool.Put(lrv)