nytimes/gziphandler

Invalid number of bytes written reported

mikegleasonjr opened this issue · 3 comments

When I have a buffer of a known length and try to write to the gzip handler, I get more bytes written than I originally sent. It think the latest commit is causing that.

b := f.buf[f.off:]
l := len(b)           // l is 104870
n, err := w.Write(b)  // w is my gziphandler (writer)
                      // n is 105079

Is this still the case since #42 was merged?

Oh wow sorry I was 1 commit behind, didn't notice you did another commit after #41 👍

No problem, sorry about all the fuss.