From: Carl Worth Date: Fri, 26 Jun 2020 14:30:38 +0000 (-0700) Subject: Send a response in the implementation of the '/reset' endpoint X-Git-Url: https://git.cworth.org/git?p=empires-server;a=commitdiff_plain;h=04466f7f35cfe583ee872dd272ded15be2bf1e0b Send a response in the implementation of the '/reset' endpoint Without this, a client could hang forever waiting for the server to say something, (which is exactly what the test suite was doing without this fix). --- diff --git a/empathy.js b/empathy.js index 4b7b5a9..5c2bd18 100644 --- a/empathy.js +++ b/empathy.js @@ -550,6 +550,8 @@ router.post('/end-judging/:prompt_id([0-9]+)', (request, response) => { router.post('/reset', (request, response) => { const game = request.game; game.reset(); + + response.send(''); }); Empathy.meta = {