From 4fc96ebb7b51333497a126658989cb85669aa6dd Mon Sep 17 00:00:00 2001 From: jamesryanbell Date: Mon, 17 Mar 2014 16:11:49 +0000 Subject: [PATCH] SVG support detection The SVGSupport checkMimeType method was failing on my setup as the headers are all returned in lowercase. I have lowercase all the indexes and modified the if statement so that it doesn't matter what case the headers are returned in --- core/js/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 841f3a769f..9ca0730fa6 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -712,11 +712,11 @@ SVGSupport.checkMimeType=function(){ if(value[0]==='"'){ value=value.substr(1,value.length-2); } - headers[parts[0]]=value; + headers[parts[0].toLowerCase()]=value; } } }); - if(headers["Content-Type"]!=='image/svg+xml'){ + if(headers["content-type"]!=='image/svg+xml'){ replaceSVG(); SVGSupport.checkMimeType.correct=false; }