This commit is contained in:
Lewis Crichton
2023-02-16 22:00:22 +00:00
parent 002607f634
commit ff03491752
+1 -1
View File
@@ -100,7 +100,7 @@ fastify.get("/settings", async (request, response) => {
fastify.put("/settings", async (request, response) => { fastify.put("/settings", async (request, response) => {
if (request.headers["content-type"] !== "application/octet-stream") { 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) { if ((request.body as Buffer).byteLength > SIZE_LIMIT) {