Skip to content

Commit

Permalink
fix: fix fail-cached data gzipped twice
Browse files Browse the repository at this point in the history
  • Loading branch information
coanor committed Oct 28, 2024
1 parent 0d11cad commit 8bb0a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/io/dataway/flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (dw *Dataway) doFlush(w *writer, b *body, opts ...WriteOption) error {
}

isGzip := "F"
if dw.GZip {
if dw.GZip && !w.cacheClean { // under cacheClean, all body has been gzipped during previous POST
var (
zstart = time.Now()
gz = getZipper()
Expand Down

0 comments on commit 8bb0a6b

Please sign in to comment.