This commit is contained in:
蒋小陌 2024-11-02 16:12:51 +08:00
parent f45631b205
commit 3a38632505
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

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