Adding another mime type to error handling

This commit is contained in:
q
2025-10-15 13:49:28 -04:00
parent b71729f68b
commit 084e91b0bd

View File

@@ -69,6 +69,7 @@ function sendImage(results, resultIndex, roomId, name, searchCommand, retryCount
name = name + ".webp"; name = name + ".webp";
break; break;
case "text/html": case "text/html":
case "text/html; charset=UTF-8":
throw new Error("HTML file provided instead of image"); throw new Error("HTML file provided instead of image");
break; break;
case "application/octet-stream": case "application/octet-stream":