Fixed meshcore download.

This commit is contained in:
Ylian Saint-Hilaire 2022-01-25 16:46:43 -08:00
parent 18c2bf4d73
commit 81214cd932
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}