From 084e91b0bdae6dbfd94f2b56e35e59bf049e68d6 Mon Sep 17 00:00:00 2001 From: q Date: Wed, 15 Oct 2025 13:49:28 -0400 Subject: [PATCH] Adding another mime type to error handling --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 1d86341..6d8b20f 100644 --- a/index.js +++ b/index.js @@ -69,6 +69,7 @@ function sendImage(results, resultIndex, roomId, name, searchCommand, retryCount name = name + ".webp"; break; case "text/html": + case "text/html; charset=UTF-8": throw new Error("HTML file provided instead of image"); break; case "application/octet-stream":