mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
bugfix (gdrive): remove headers from the google drive api that are causing display issues
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user