Correctly calculate checksum when using GZIP. Part of [#2168]
This commit is contained in:
parent
dddfb149a5
commit
85a997d5ec
@ -231,7 +231,7 @@ public class JdkZlibEncoder extends ZlibEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wrapper == ZlibWrapper.GZIP) {
|
if (wrapper == ZlibWrapper.GZIP) {
|
||||||
crc.update(inAry);
|
crc.update(inAry, offset, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
deflater.setInput(inAry, offset, len);
|
deflater.setInput(inAry, offset, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user