Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request owncloud#7770 from jamesryanbell/master
Browse files Browse the repository at this point in the history
SVG support detection
  • Loading branch information
MorrisJobke committed Mar 28, 2014
2 parents 7adb5ae + 4fc96eb commit 841069e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,11 +759,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;
}
Expand Down

0 comments on commit 841069e

Please sign in to comment.