Skip to content

Commit 000ace5

Browse files
committed
Fix double counting bytes
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent a2584bd commit 000ace5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

httpserver/wrap_writter.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ func (f *http2FancyWriter) Push(target string, opts *http.PushOptions) error {
227227
func (f *httpFancyWriter) ReadFrom(r io.Reader) (int64, error) {
228228
if f.basicWriter.tee != nil {
229229
n, err := io.Copy(&f.basicWriter, r)
230-
f.basicWriter.bytes += int(n)
231230
return n, err
232231
}
233232
rf := f.basicWriter.ResponseWriter.(io.ReaderFrom)

0 commit comments

Comments
 (0)