From 8bb0a6b49aa102dd97b1c5977f99e385470bcf6b Mon Sep 17 00:00:00 2001 From: coanor Date: Mon, 28 Oct 2024 16:05:06 +0800 Subject: [PATCH] fix: fix fail-cached data gzipped twice --- internal/io/dataway/flush.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/io/dataway/flush.go b/internal/io/dataway/flush.go index 6cc638d1e1..0b24162d07 100644 --- a/internal/io/dataway/flush.go +++ b/internal/io/dataway/flush.go @@ -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()