Skip to content

Commit

Permalink
Merge pull request #23 from CAFxX/patch-1
Browse files Browse the repository at this point in the history
Trim the slice returned by the brotli encoder
  • Loading branch information
vearutop authored Aug 14, 2024
2 parents e32e0d3 + d6adc2c commit 7f6b9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brotli/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func AddEncoding(server *statigz.Server) {
return nil, err
}

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

Expand Down

0 comments on commit 7f6b9cf

Please sign in to comment.