Compare commits

..

No commits in common. "07dbaea8ec3e137ac013b24218c495772c519f2b" and "b80444a76b4052ea1d6148409ee7c37dc8c4370f" have entirely different histories.

View File

@ -114,7 +114,7 @@ const server = http.createServer(async (req, res) => {
}
// 检查第一个路径只能是 avatar,endpoint,go,bbs,www
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb', 'app'].includes(reqPath)) {
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb'].includes(reqPath)) {
res.writeHead(404, { 'Content-Type': 'text/plain;charset=UTF-8' });
res.end('Not Found');
return;