mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-02-16 22:20:59 +01:00
return when sending json
This commit is contained in:
parent
e938822277
commit
15250a1c00
@ -1650,7 +1650,7 @@ module.exports = (app, redis, fetch, RedditAPI) => {
|
|||||||
if(export_to_file === 'on') {
|
if(export_to_file === 'on') {
|
||||||
res.setHeader('Content-disposition', 'attachment; filename=teddit_prefs.json')
|
res.setHeader('Content-disposition', 'attachment; filename=teddit_prefs.json')
|
||||||
res.setHeader('Content-type', 'application/json')
|
res.setHeader('Content-type', 'application/json')
|
||||||
res.send(req.cookies)
|
return res.send(req.cookies)
|
||||||
}
|
}
|
||||||
|
|
||||||
let r = `${(Math.random().toString(36)+'00000000000000000').slice(2, 10+2).toUpperCase()}`
|
let r = `${(Math.random().toString(36)+'00000000000000000').slice(2, 10+2).toUpperCase()}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user