Skip to content

Commit

Permalink
Merge pull request #24 from CAFxX/patch-2
Browse files Browse the repository at this point in the history
trim buffer returned by gzip encoder
  • Loading branch information
vearutop authored Aug 14, 2024
2 parents 7f6b9cf + b047362 commit 7930c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func GzipEncoding() Encoding {
return nil, err
}

return res.Bytes(), nil
return append([]byte{}, res.Bytes()...), nil
},
}
}
Expand Down

0 comments on commit 7930c34

Please sign in to comment.