Skip to content

Commit

Permalink
Merge branch 'testing-fix-fail-cache-gzip-twice' into 'dev'
Browse files Browse the repository at this point in the history
fix: fix fail-cached data gzipped twice

See merge request cloudcare-tools/datakit!3251
  • Loading branch information
谭彪 committed Oct 28, 2024
2 parents 0d11cad + 8bb0a6b commit 758cf0f
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 758cf0f

Please sign in to comment.