# Implement gzip header CRC check\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f85c01d4c7520d2242626f4c0684ab97e47af373)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f85c01d4c7520d2242626f4c0684ab97e47af373

Requested commit: f85c01d4c7520d2242626f4c0684ab97e47af373

Commit: f85c01d4c7520d2242626f4c0684ab97e47af373

Tree: 9385b5c065a3e90449dc1e02883d579799dca1fe

Author: fn ⌃ ⌥

Committer: Andrew Kelley

## Message

```
Implement gzip header CRC check.

From RFC 1952:

> If FHCRC is set, a CRC16 for the gzip header is present,
> immediately before the compressed data. The CRC16 consists
> of the two least significant bytes of the CRC32 for all
> bytes of the gzip header up to and not including the CRC16.

```

## Parents

- [562d52e23dce703b0eb45a212522588274afbd38](https://git.cafe/gitcafe/zig/commit/562d52e23dce703b0eb45a212522588274afbd38?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f85c01d4c7520d2242626f4c0684ab97e47af373?format=markdown)
