mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
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:
parent
a9d7add1e3
commit
36f21196f4
1 changed files with 1 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ api.csv = function(req, res) {
|
|||
})
|
||||
output.push(uData);
|
||||
});
|
||||
res.header('Content-disposition', 'attachment; filename='+cid+'.csv');
|
||||
res.csv(output);
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue