Skip to content

Commit

Permalink
Fix #722, 713
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Oct 28, 2023
1 parent 1807371 commit 4f99328
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/filter/flateDecode.go
Expand Up @@ -98,6 +98,14 @@ func (f flate) Decode(r io.Reader) (io.Reader, error) {
func passThru(rin io.Reader) (*bytes.Buffer, error) {
var b bytes.Buffer
_, err := io.Copy(&b, rin)
if err == io.ErrUnexpectedEOF {
// Workaround for missing support for partial flush in compress/flate.
// See also https://github.com/golang/go/issues/31514
if log.ReadEnabled() {
log.Read.Println("flateDecode: ignoring unexpected EOF")
}
err = nil
}
return &b, err
}

Expand Down

0 comments on commit 4f99328

Please sign in to comment.