fix(challenges): challenge csv export now has proper filename

This sets the Content-disposition filename for the Challenge CSV export
to be {challenge_id}.csv.

Fixes #2689.
This commit is contained in:
Cole Gleason 2014-02-01 12:14:24 -06:00
parent a9d7add1e3
commit 36f21196f4

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);
})
}