From 0835a7821cb912f9f58bddbc9563c8124155033f Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 10 Mar 2021 04:37:04 -0500 Subject: [PATCH] cope with odd svg content-types (#3173) Fixes #3072 --- build/flaws.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/flaws.js b/build/flaws.js index a50ad0a51712..5b449558cd77 100644 --- a/build/flaws.js +++ b/build/flaws.js @@ -591,7 +591,9 @@ async function fixFixableFlaws(doc, options, document) { if ( !fileType && flaw.src.toLowerCase().endsWith(".svg") && - imageResponse.headers["content-type"] === "image/svg+xml" + imageResponse.headers["content-type"] + .toLowerCase() + .startsWith("image/svg+xml") ) { // If the SVG doesn't have the `` // and/or the `