# http_client: Add integrity checks for GitHub binaries using digest checks \(\#43737\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/05764e8af797b5abb8076bc78ce32d4130505e93)

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

Visibility: public

Requested revision: 05764e8af797b5abb8076bc78ce32d4130505e93

Requested commit: 05764e8af797b5abb8076bc78ce32d4130505e93

Commit: 05764e8af797b5abb8076bc78ce32d4130505e93

Tree: 5bf2b878190f5b533d19eb374ce2e4bf874fb765

Author: Tom Planche

Committer: GitHub

## Message

```
http_client: Add integrity checks for GitHub binaries using digest checks (#43737)

Generalizes the digest verification logic from `rust-analyzer` and
`clangd` into a reusable helper function in
`http_client::github_download`.

This removes ~100 lines of duplicated code across the two language
adapters and makes it easier for other language servers to adopt digest
verification in the future.

Closes #35201

Release Notes:

- N/A
```

## Parents

- [db86febc0cfa2516b516e4fac03e4bb94cabdb62](https://git.cafe/gitcafe/zed/commit/db86febc0cfa2516b516e4fac03e4bb94cabdb62?format=markdown)

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