1870
1888
report_struct['format'], 'octet-stream')
1871
1889
return req.make_response(report,
1873
('Content-Disposition', 'attachment; filename="%s.%s"' % (action['report_name'], report_struct['format'])),
1891
('Content-Disposition', 'attachment; filename="%s.%s"' % (file_name, report_struct['format'])),
1874
1892
('Content-Type', report_mimetype),
1875
1893
('Content-Length', len(report))],
1876
1894
cookies={'fileToken': int(token)})