Merge branch 'WeeJeWel:master' into master

This commit is contained in:
cany748
2022-07-06 11:57:52 +07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ module.exports = class Server {
.replace(/(-{2,}|-$)/g, '-')
.replace(/-$/, '')
.substring(0, 32);
res.header('Content-Disposition', `attachment; filename="${configName}.conf"`);
res.header('Content-Disposition', `attachment; filename="${configName || clientId}.conf"`);
res.header('Content-Type', 'text/plain');
res.send(config);
}))