From d98d177674f04403b1e03195acde3eab5495b7be Mon Sep 17 00:00:00 2001 From: "rodrigo.silva" Date: Fri, 5 Jul 2024 19:23:31 +0000 Subject: [PATCH] chore: fix gzip inflate to handle nested lists --- lib/kayrock/compression.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kayrock/compression.ex b/lib/kayrock/compression.ex index 3ddbf28..e011d53 100644 --- a/lib/kayrock/compression.ex +++ b/lib/kayrock/compression.ex @@ -33,8 +33,8 @@ defmodule Kayrock.Compression do def decompress(@gzip_attribute, <> = 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