mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #7770 from jamesryanbell/master
SVG support detection
This commit is contained in:
commit
841069e8cb
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue