|
|
@ -16,7 +16,7 @@ var( |
|
|
|
UnsupportedCompression = fmt.Errorf("unsupported compression") |
|
|
|
) |
|
|
|
|
|
|
|
func MaybeGzipData(input []byte) ([]byte) { |
|
|
|
func MaybeGzipData(input []byte) []byte { |
|
|
|
if IsGzippedContent(input) { |
|
|
|
return input |
|
|
|
} |
|
|
@ -30,7 +30,7 @@ func MaybeGzipData(input []byte) ([]byte) { |
|
|
|
return gzipped |
|
|
|
} |
|
|
|
|
|
|
|
func MaybeDecompressData(input []byte) ([]byte) { |
|
|
|
func MaybeDecompressData(input []byte) []byte { |
|
|
|
uncompressed, err := DecompressData(input) |
|
|
|
if err != nil { |
|
|
|
if err != UnsupportedCompression { |
|
|
|