aboutsummaryrefslogtreecommitdiff
path: root/weed/operation
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-27 00:30:55 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-27 00:30:55 -0700
commite1911760a773fadc236a3463cd2d6a4c0f2dd5d1 (patch)
tree7cc739478bd7c42f5e345f5bf39f594b3653064f /weed/operation
parent2f5ed29c37c204fb461498b9f3c51f76442ca01c (diff)
downloadseaweedfs-e1911760a773fadc236a3463cd2d6a4c0f2dd5d1.tar.xz
seaweedfs-e1911760a773fadc236a3463cd2d6a4c0f2dd5d1.zip
refactoring
Diffstat (limited to 'weed/operation')
-rw-r--r--weed/operation/upload_content.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index b74663c36..56c820f00 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -80,7 +80,6 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
if !isInputGzipped {
if shouldBeZipped, iAmSure := util.IsGzippableFileType(filepath.Base(filename), mtype); iAmSure && shouldBeZipped {
shouldGzipNow = true
- contentIsGzipped = true
} else if len(data) > 128 {
var compressed []byte
compressed, err = util.GzipData(data[0:128])