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":