Consume gzip stream in test
Also close writer since this test previously failed due to truncated output.
This commit is contained in:
@ -38,7 +38,7 @@ func (t *Gzip) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, heade
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer gzw.Flush()
|
||||
defer gzw.Close()
|
||||
w.Writer = gzw
|
||||
w.Header().Set("Content-Encoding", "gzip")
|
||||
}
|
||||
|
Reference in New Issue
Block a user