Skip to content

Commit

Permalink
chore: fix gzip inflate to handle nested lists
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigosilva-brex committed Jul 5, 2024
1 parent ddb968b commit d98d177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kayrock/compression.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ defmodule Kayrock.Compression do
def decompress(@gzip_attribute, <<window_size::8-signed, _::bits>> = data) do
z = :zlib.open()
:zlib.inflateInit(z, window_size)
[v | _] = :zlib.inflate(z, data)
v
v = :zlib.inflate(z, data)
Enum.into(List.flatten(v), <<>>)
end

def decompress(@snappy_attribute, data) do
Expand Down

0 comments on commit d98d177

Please sign in to comment.