Merge pull request #464 from rtyley/development Tolerate zlib deflation with window size < 32Kb
diff --git a/src/odb_loose.c b/src/odb_loose.c
index 80f0aa9..dbfe18b 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -214,7 +214,7 @@ static int is_zlib_compressed_data(unsigned char *data)
unsigned int w;
w = ((unsigned int)(data[0]) << 8) + data[1];
- return data[0] == 0x78 && !(w % 31);
+ return (data[0] & 0x8F) == 0x08 && !(w % 31);
}
static int inflate_buffer(void *in, size_t inlen, void *out, size_t outlen)