Fix handling of 206 status code in updater

This commit is contained in:
Fedor Indutny 2022-04-26 16:58:29 -07:00 committed by GitHub
parent c8842d94ec
commit 0a24ca8d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 10 deletions

View file

@ -112,7 +112,7 @@ describe('updater/differential', () => {
});
if (ranges.length === 1) {
res.writeHead(200, {
res.writeHead(206, {
'content-type': 'application/octet-stream',
});
if (shouldTimeout === 'response') {