Correctly calculate checksum when using GZIP. Part of [#2168]
This commit is contained in:
parent
4f6ccbbb78
commit
ff771c0fcb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user