diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-01 13:08:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-01 13:08:10 -0700 |
| commit | 2f03481cb288e1677a489caceaedd870b6960ed3 (patch) | |
| tree | 90cd78ed81aee020d11bff92462a4e84fbf5b2c2 /weed/util/compression.go | |
| parent | e1f070a9a1699578de4f1513f62453c7a490514f (diff) | |
| download | seaweedfs-2f03481cb288e1677a489caceaedd870b6960ed3.tar.xz seaweedfs-2f03481cb288e1677a489caceaedd870b6960ed3.zip | |
in case when content is not compressed
Diffstat (limited to 'weed/util/compression.go')
| -rw-r--r-- | weed/util/compression.go | 2 |
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) { |
