From dfce6c727862065ba34f31bc564fe8f06ca8c12d Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 11 Jan 2022 14:14:52 +0530 Subject: [PATCH] Fix for pledges list: end -> send MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because the other one was making the browser try to download the page instead of just opening it. (We actually ran into this before, but I guess I forgot 😛) --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 2014bce..56ce7e0 100644 --- a/server/index.js +++ b/server/index.js @@ -506,7 +506,7 @@ router.get('/pledges', async (req, res) => { twing.render('pledges.htm.twig', { 'recent_pledges': recentPledges, }).then((output) => { - res.end(output) + res.send(output) }) })