|
|
@ -232,8 +232,8 @@ const server = http.createServer(async (req, res) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 处理GET请求
|
|
|
// 处理GET请求
|
|
|
// 解析请求路径
|
|
|
// 解析请求路径,移除查询参数
|
|
|
let filePath = '.' + req.url; |
|
|
let filePath = '.' + req.url.split('?')[0]; |
|
|
if (filePath === './') { |
|
|
if (filePath === './') { |
|
|
filePath = './certificate.html'; |
|
|
filePath = './certificate.html'; |
|
|
} |
|
|
} |
|
|
|