1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed server crash due to assigning a const.

This commit is contained in:
Ylian Saint-Hilaire 2020-03-31 10:37:52 -07:00
parent 8f2046984d
commit 6c4f1ec2b5
2 changed files with 3 additions and 4 deletions

View file

@ -3238,7 +3238,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// Handle a request to download a mesh agent
obj.handleMeshAgentRequest = function (req, res) {
const domain = getDomain(req, res);
var domain = getDomain(req, res);
if (domain == null) { parent.debug('web', 'handleRootRequest: invalid domain.'); try { res.sendStatus(404); } catch (ex) { } return; }
// If required, check if this user has rights to do this