返回提交历史
Modified
src/routes/cache.ts
+1
-1
XFEstudio/SpaceNinjaServer
chore: handle client requesting non-Lotus assets (#934)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/934 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
a03c987f
代码差异
1 个文件
+1
-1
@@ -12,7 +12,7 @@ cacheRouter.get(/^\/origin\/[a-zA-Z0-9]+\/[0-9]+\/H\.Cache\.bin.*$/, (req, res)
12
12
}
13
13
});
14
14
15
cacheRouter.get(/^\/0\/Lotus\/.+!.+$/, async (req, res) => {
15
cacheRouter.get(/^\/0\/.+!.+$/, async (req, res) => {
16
16
try {
17
17
const dir = req.path.substr(0, req.path.lastIndexOf("/"));
18
18
const file = req.path.substr(dir.length + 1);