bugfix (gdrive): remove headers from the google drive api that are causing display issues

This commit is contained in:
Mickael Kerjean 2017-08-30 23:56:01 +10:00
parent 7dbbbd99b7
commit a6ffdd881d

View file

@ -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){