Skip to content
Snippets Groups Projects
Commit 841069e8 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #7770 from jamesryanbell/master

SVG support detection
parents 7adb5ae2 4fc96ebb
No related branches found
No related tags found
No related merge requests found
...@@ -759,11 +759,11 @@ SVGSupport.checkMimeType=function(){ ...@@ -759,11 +759,11 @@ SVGSupport.checkMimeType=function(){
if(value[0]==='"'){ if(value[0]==='"'){
value=value.substr(1,value.length-2); 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(); replaceSVG();
SVGSupport.checkMimeType.correct=false; SVGSupport.checkMimeType.correct=false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment