Compare commits
No commits in common. "07dbaea8ec3e137ac013b24218c495772c519f2b" and "b80444a76b4052ea1d6148409ee7c37dc8c4370f" have entirely different histories.
07dbaea8ec
...
b80444a76b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user