diff --git a/src/parse-generate.js b/src/parse-generate.js index ffd52f1..0e2f398 100644 --- a/src/parse-generate.js +++ b/src/parse-generate.js @@ -15,7 +15,7 @@ const validateAndFix = (gif) => { export const parse = (src, { signal }) => fetch(src, { signal }) .then((resp) => { - if (resp.headers.get("Content-Type") !== "image/gif") + if (!resp.headers.get("Content-Type").includes("image/gif")) throw Error( `Wrong content type: "${resp.headers.get("Content-Type")}"` );