fix download count on server (#863)
This commit is contained in:
parent
d906e927ed
commit
59ba89262f
3 changed files with 19 additions and 3 deletions
|
@ -169,7 +169,6 @@ function download(id, keychain, onprogress, canceller) {
|
|||
const auth = await keychain.authHeader();
|
||||
xhr.open('get', `/api/download/${id}`);
|
||||
xhr.setRequestHeader('Authorization', auth);
|
||||
xhr.setRequestHeader('Connection', 'close');
|
||||
xhr.responseType = 'blob';
|
||||
xhr.send();
|
||||
onprogress([0, 1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue