Skip to content

Commit 5359fd7

Browse files
refactor
1 parent ae7b227 commit 5359fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ wpt(app);
3232

3333
// catch 404 and forward to error handler
3434
app.all('*', function (req, res) {
35-
res.send('what???', 404);
35+
res.status(404).send('what???');
3636
});
3737

3838
app.use(function (req, res, next) {

0 commit comments

Comments
 (0)