We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be14c4f commit 181601aCopy full SHA for 181601a
src/parse-generate.js
@@ -15,7 +15,7 @@ const validateAndFix = (gif) => {
15
export const parse = (src, { signal }) =>
16
fetch(src, { signal })
17
.then((resp) => {
18
- if (resp.headers.get("Content-Type") !== "image/gif")
+ if (!resp.headers.get("Content-Type").includes("image/gif"))
19
throw Error(
20
`Wrong content type: "${resp.headers.get("Content-Type")}"`
21
);
0 commit comments