diff --git a/internal/nodes/http_writer.go b/internal/nodes/http_writer.go index 7cc111e..8d61f90 100644 --- a/internal/nodes/http_writer.go +++ b/internal/nodes/http_writer.go @@ -584,6 +584,11 @@ func (this *HTTPWriter) PrepareCompression(resp *http.Response, size int64) { return } + // 分区内容不压缩,防止读取失败 + if !this.compressionConfig.EnablePartialContent && this.StatusCode() == http.StatusPartialContent { + return + } + if this.compressionConfig.Level <= 0 { return }