Correctly calculate checksum when using GZIP. Part of [#2168]

This commit is contained in:
Norman Maurer 2014-02-06 10:47:59 +01:00
parent dddfb149a5
commit 85a997d5ec

View File

@ -231,7 +231,7 @@ public class JdkZlibEncoder extends ZlibEncoder {
}
if (wrapper == ZlibWrapper.GZIP) {
crc.update(inAry);
crc.update(inAry, offset, len);
}
deflater.setInput(inAry, offset, len);