Merge pull request #2693 from colegleason/csv

Set filename when exporting challenge to CSV
This commit is contained in:
Cole Gleason 2014-02-01 17:10:09 -08:00
commit b01d08ccfe

View file

@ -98,6 +98,7 @@ api.csv = function(req, res) {
})
output.push(uData);
});
res.header('Content-disposition', 'attachment; filename='+cid+'.csv');
res.csv(output);
})
}