began adding capability flags

This commit is contained in:
Danny Coates
2018-07-31 11:29:26 -07:00
parent ebbb174c66
commit d14aeb29e9
12 changed files with 236 additions and 100 deletions

View File

@@ -270,7 +270,7 @@ function download(id, keychain, onprogress, canceller) {
}
});
const auth = await keychain.authHeader();
xhr.open('get', `/api/download/${id}`);
xhr.open('get', `/api/download/blob/${id}`);
xhr.setRequestHeader('Authorization', auth);
xhr.responseType = 'blob';
xhr.send();