Skip to content

Commit

Permalink
修复 [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to…
Browse files Browse the repository at this point in the history
… the client 的报错
  • Loading branch information
haochuan9421 committed Oct 30, 2018
1 parent d107ab1 commit 1abc9eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/sts-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ app.all('/sts-auth', function (req, res, next) {
});
});
app.all('*', function (req, res, next) {
res.writeHead(404);
res.send('404 Not Found');
res.status(404).send('404 Not Found');
});

// 启动签名服务
Expand Down

0 comments on commit 1abc9eb

Please sign in to comment.