mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed meshcore download.
This commit is contained in:
parent
18c2bf4d73
commit
81214cd932
1 changed files with 1 additions and 1 deletions
|
@ -5215,7 +5215,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
var bin = parent.defaultMeshCores[req.query.dlcore];
|
var bin = parent.defaultMeshCores[req.query.dlcore];
|
||||||
if ((bin == null) || (bin.length < 5)) { try { res.sendStatus(404); } catch (ex) { } return; }
|
if ((bin == null) || (bin.length < 5)) { try { res.sendStatus(404); } catch (ex) { } return; }
|
||||||
setContentDispositionHeader(res, 'application/octet-stream', req.query.dlcore + '.js', null, 'meshcore.js');
|
setContentDispositionHeader(res, 'application/octet-stream', req.query.dlcore + '.js', null, 'meshcore.js');
|
||||||
res.send(bin.substring(4));
|
res.send(bin.slice(4));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue