From 30ff2aaf023126d529562d859159ec01e912f27b Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:45:12 +0100 Subject: [PATCH] Fix issue with content type --- pages/api/beatsaver/art/[hash].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/beatsaver/art/[hash].js b/pages/api/beatsaver/art/[hash].js index 65dcc94..8730388 100644 --- a/pages/api/beatsaver/art/[hash].js +++ b/pages/api/beatsaver/art/[hash].js @@ -21,6 +21,6 @@ export default async function handler(req, res) { return; } const buffer = fs.readFileSync(imagePath); - res.setHeader("Content-Type", "image/jpg" + ext); + res.setHeader("Content-Type", "image/" + ext); res.send(buffer); }