aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server_handlers_read.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-21 13:06:35 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-21 13:06:45 -0800
commit92f906b6fcce2ef72661bb825075e2826b8f3aa1 (patch)
treecb8b27ad90dd6afa83e3e34033db9bbd551477e1 /weed/server/volume_server_handlers_read.go
parent025bd8d447e147643173f369afcd7cc29b04e4d8 (diff)
downloadseaweedfs-92f906b6fcce2ef72661bb825075e2826b8f3aa1.tar.xz
seaweedfs-92f906b6fcce2ef72661bb825075e2826b8f3aa1.zip
remove zstd
fix https://github.com/chrislusf/seaweedfs/issues/1629
Diffstat (limited to 'weed/server/volume_server_handlers_read.go')
-rw-r--r--weed/server/volume_server_handlers_read.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go
index 15fd446e7..5a5495df6 100644
--- a/weed/server/volume_server_handlers_read.go
+++ b/weed/server/volume_server_handlers_read.go
@@ -159,8 +159,8 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
if n.Data, err = util.DecompressData(n.Data); err != nil {
glog.V(0).Infoln("ungzip error:", err, r.URL.Path)
}
- } else if strings.Contains(r.Header.Get("Accept-Encoding"), "zstd") && util.IsZstdContent(n.Data) {
- w.Header().Set("Content-Encoding", "zstd")
+ // } else if strings.Contains(r.Header.Get("Accept-Encoding"), "zstd") && util.IsZstdContent(n.Data) {
+ // w.Header().Set("Content-Encoding", "zstd")
} else if strings.Contains(r.Header.Get("Accept-Encoding"), "gzip") && util.IsGzippedContent(n.Data) {
w.Header().Set("Content-Encoding", "gzip")
} else {