Adding another mime type to error handling
This commit is contained in:
1
index.js
1
index.js
@@ -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":
|
||||||
|
Reference in New Issue
Block a user