Handle gzip responses

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
Snippet might become empty

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>