aboutsummaryrefslogtreecommitdiff
path: root/weed/util/compression.go
diff options
context:
space:
mode:
authorhilimd <68371223+hilimd@users.noreply.github.com>2020-08-03 18:49:24 +0800
committerGitHub <noreply@github.com>2020-08-03 18:49:24 +0800
commit6769d07604fff5c8b9fbac2a93cf232b4c159fb2 (patch)
tree1e5d4c71bac905fbd8beb9a89146660f989c5492 /weed/util/compression.go
parentb41b7ea4d09616b42edbad87ab71ac4f2b0fa08c (diff)
parentd6073f638670c24f3eb189b7d74dfaebd477fbff (diff)
downloadseaweedfs-6769d07604fff5c8b9fbac2a93cf232b4c159fb2.tar.xz
seaweedfs-6769d07604fff5c8b9fbac2a93cf232b4c159fb2.zip
Merge pull request #10 from chrislusf/master
sync
Diffstat (limited to 'weed/util/compression.go')
-rw-r--r--weed/util/compression.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/util/compression.go b/weed/util/compression.go
index 4488e019e..2881a7bfd 100644
--- a/weed/util/compression.go
+++ b/weed/util/compression.go
@@ -39,7 +39,7 @@ func DecompressData(input []byte) ([]byte, error) {
if IsZstdContent(input) {
return unzstdData(input)
}
- return nil, fmt.Errorf("unsupported compression")
+ return input, fmt.Errorf("unsupported compression")
}
func ungzipData(input []byte) ([]byte, error) {