Skip to content

Commit

Permalink
server: respond with 200 on GET /
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Nov 14, 2024
1 parent 328ad12 commit b140467
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ const createServer = (cfg, opt = {}) => {
}
}

// for some reason, the VBB DDS sometimes GET-requests `/`
const rootEmpty200 = (req, res) => {
if (!res.headersSent) {
res.end()
}
}
router.get('/', rootEmpty200)

return {
router,
errorHandler,
Expand Down

0 comments on commit b140467

Please sign in to comment.