in case when content is not compressed

This commit is contained in:
Chris Lu committed 2020-08-01 13:08:10 -07:00
1 parent e1f070a9a1
commit 2f03481cb2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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) {