Skip to content

Commit 68098bd

Browse files
committed
add a return
1 parent c26064e commit 68098bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares/base-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function createBaseHandler() {
5050
onNoMatch: (req, res) => {
5151
if (req.method === 'OPTIONS') {
5252
logger.info('OPTIONS request')
53-
res.status(200).end()
53+
return res.status(200).end()
5454
}
5555

5656
res.status(404).json({

0 commit comments

Comments
 (0)