Compare commits
2 Commits
b80444a76b
...
07dbaea8ec
Author | SHA1 | Date | |
---|---|---|---|
07dbaea8ec | |||
e5d1aa67f8 |
@ -114,7 +114,7 @@ const server = http.createServer(async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检查第一个路径只能是 avatar,endpoint,go,bbs,www
|
// 检查第一个路径只能是 avatar,endpoint,go,bbs,www
|
||||||
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb'].includes(reqPath)) {
|
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb', 'app'].includes(reqPath)) {
|
||||||
res.writeHead(404, { 'Content-Type': 'text/plain;charset=UTF-8' });
|
res.writeHead(404, { 'Content-Type': 'text/plain;charset=UTF-8' });
|
||||||
res.end('Not Found');
|
res.end('Not Found');
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user