CartoDB-SQL-API/lib/utils/content-disposition.js
Daniel García Aubert 5a96dbb59c Run eslint --fix
2019-12-23 18:19:08 +01:00

9 lines
322 B
JavaScript

'use strict';
module.exports = function getContentDisposition (formatter, filename, inline) {
var ext = formatter.getFileExtension();
var time = new Date().toUTCString();
return (inline ? 'inline' : 'attachment') + '; filename=' + filename + '.' + ext + '; ' +
'modification-date="' + time + '";';
};