Update index.js
Browse files
index.js
CHANGED
@@ -64,7 +64,7 @@ app.get('/*', async (req, res) => {
|
|
64 |
|
65 |
// 判断访问路径
|
66 |
if (req.path === '/html') {
|
67 |
-
res.set('Content-Type', 'text/
|
68 |
res.send(result.htmlContent); // 发送 htmlContent 的纯文本响应
|
69 |
} else {
|
70 |
res.set('Content-Type', 'text/plain');
|
|
|
64 |
|
65 |
// 判断访问路径
|
66 |
if (req.path === '/html') {
|
67 |
+
res.set('Content-Type', 'text/html');
|
68 |
res.send(result.htmlContent); // 发送 htmlContent 的纯文本响应
|
69 |
} else {
|
70 |
res.set('Content-Type', 'text/plain');
|