From 04466f7f35cfe583ee872dd272ded15be2bf1e0b Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@cworth.org>
Date: Fri, 26 Jun 2020 07:30:38 -0700
Subject: [PATCH] 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).
---
 empathy.js | 2 ++
 1 file changed, 2 insertions(+)

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 = {
-- 
2.45.2