lix02 commited on
Commit
67f9110
·
verified ·
1 Parent(s): b9765d4

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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/plain');
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');