-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add length/hash validation for downloads
Fixes #246 (possibly) though it requires microsoft/vscode-update-server#167 in order to be fully functional. At minimum it validates the length of the stream matches the content-length the CDN told us about, and it will validate SHA256 checksums when the update server provides them. (I looked at getting them other ways, but it's very roundabout; the update server should just add them on all its headers.)
- Loading branch information
1 parent
91c7f9c
commit 6a41b27
Showing
3 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters