summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-03-28 15:14:12 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-03-28 15:14:12 +0100
commit841069e8cbd2c40cd223a31f914e9ac4b9278890 (patch)
tree35948001f354c0bfc6ddec162223ace5a3a71688 /core
parent7adb5ae2c58c52c2a8e565260d61ebf19fb5a101 (diff)
parent4fc96ebb7b51333497a126658989cb85669aa6dd (diff)
downloadnextcloud-server-841069e8cbd2c40cd223a31f914e9ac4b9278890.tar.gz
nextcloud-server-841069e8cbd2c40cd223a31f914e9ac4b9278890.zip
Merge pull request #7770 from jamesryanbell/master
SVG support detection
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 721a5a2e927..302b6b4d9fa 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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;
}