From 8f6ef88a9fd37a14615054979675ba069b21d0eb Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Sat, 18 Feb 2023 14:10:22 +0000 Subject: [PATCH] actually send responses --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 228b247..8095544 100644 --- a/src/index.ts +++ b/src/index.ts @@ -93,10 +93,10 @@ fastify.head("/settings", async (request, reply) => { const written = await redis.hget(`settings:${userIdHash}`, "written"); if (!written) { - return reply.status(404); + return reply.status(404).send(); } - return reply.header("ETag", written); + return reply.header("ETag", written).send(); }); fastify.get("/settings", async (request, reply) => {