mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-04 14:52:36 +01:00
bugfix (gdrive): remove headers from the google drive api that are causing display issues
This commit is contained in:
parent
7dbbbd99b7
commit
a6ffdd881d
1 changed files with 7 additions and 0 deletions
|
|
@ -228,6 +228,13 @@ module.exports = {
|
|||
return download(auth, file.id);
|
||||
}
|
||||
});
|
||||
})
|
||||
.then(function(stream){
|
||||
stream.on('response', function(response) {
|
||||
delete response.headers['content-disposition'];
|
||||
delete response.headers['conection'];
|
||||
});
|
||||
return Promise.resolve(stream);
|
||||
});
|
||||
|
||||
function fileInfo(auth, id){
|
||||
|
|
|
|||
Loading…
Reference in a new issue