Skip to content

Commit

Permalink
fixes wg-easy#306
Browse files Browse the repository at this point in the history
  • Loading branch information
Emile Nijssen committed Jul 3, 2022
1 parent eda9dd5 commit bc320fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}))
Expand Down

0 comments on commit bc320fb

Please sign in to comment.