chore: handle client requesting non-Lotus assets #934

Merged
OrdisPrime merged 1 commits from stripped into main 2025-02-09 09:39:53 -08:00

View File

@ -12,7 +12,7 @@ cacheRouter.get(/^\/origin\/[a-zA-Z0-9]+\/[0-9]+\/H\.Cache\.bin.*$/, (req, res)
} }
}); });
cacheRouter.get(/^\/0\/Lotus\/.+!.+$/, async (req, res) => { cacheRouter.get(/^\/0\/.+!.+$/, async (req, res) => {
try { try {
const dir = req.path.substr(0, req.path.lastIndexOf("/")); const dir = req.path.substr(0, req.path.lastIndexOf("/"));
const file = req.path.substr(dir.length + 1); const file = req.path.substr(dir.length + 1);