Browse Source

fixes #306

pull/319/head
Emile Nijssen 3 years ago
parent
commit
bc320fbf79
  1. 2
      src/lib/Server.js

2
src/lib/Server.js

@ -104,7 +104,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);
}))

Loading…
Cancel
Save