nytimes/gziphandler

Incorrect check for short write

duncanharris opened this issue · 0 comments

if err == nil && n < len(w.buf) {

len(w.buf) is always zero at this point because of previous line: w.buf = nil