mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-23 20:53:15 -05:00
Fixed meshcore download.
This commit is contained in:
parent
18c2bf4d73
commit
81214cd932
@ -5215,7 +5215,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
var bin = parent.defaultMeshCores[req.query.dlcore];
|
||||
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');
|
||||
res.send(bin.substring(4));
|
||||
res.send(bin.slice(4));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user