From ff03491752b44d421bc7f9dba848157b9cd4f05f Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Thu, 16 Feb 2023 22:00:22 +0000 Subject: [PATCH] 415 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 307fd9b..a1d1ae6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ fastify.get("/settings", async (request, response) => { fastify.put("/settings", async (request, response) => { if (request.headers["content-type"] !== "application/octet-stream") { - return response.status(413).send({ error: "Content type must be `application/octet-stream`" }); + return response.status(415).send({ error: "Content type must be `application/octet-stream`" }); } if ((request.body as Buffer).byteLength > SIZE_LIMIT) {