aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-03 01:42:21 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-03 01:42:21 -0800
commit039ad101b18e71fd8f0fb0006702678d11fc54fd (patch)
tree833b63e703ca8da9607ad1a0f5ab7810b1557e79
parent5f538c5f9d545d5cdd10c4beb42fa2ef2ac7668f (diff)
downloadseaweedfs-039ad101b18e71fd8f0fb0006702678d11fc54fd.tar.xz
seaweedfs-039ad101b18e71fd8f0fb0006702678d11fc54fd.zip
manifest file also need to detect compression
fix https://github.com/chrislusf/seaweedfs/issues/1724#issuecomment-753585046
-rw-r--r--weed/storage/needle/needle_parse_upload.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/needle/needle_parse_upload.go b/weed/storage/needle/needle_parse_upload.go
index 8f457be1d..7201503f1 100644
--- a/weed/storage/needle/needle_parse_upload.go
+++ b/weed/storage/needle/needle_parse_upload.go
@@ -193,9 +193,9 @@ func parseMultipart(r *http.Request, sizeLimit int64, pu *ParsedUpload) (e error
mtype = contentType
}
- pu.IsGzipped = part.Header.Get("Content-Encoding") == "gzip"
- // pu.IsZstd = part.Header.Get("Content-Encoding") == "zstd"
}
+ pu.IsGzipped = part.Header.Get("Content-Encoding") == "gzip"
+ // pu.IsZstd = part.Header.Get("Content-Encoding") == "zstd"
return
}