diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-03-28 15:14:12 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-03-28 15:14:12 +0100 |
commit | 841069e8cbd2c40cd223a31f914e9ac4b9278890 (patch) | |
tree | 35948001f354c0bfc6ddec162223ace5a3a71688 /core | |
parent | 7adb5ae2c58c52c2a8e565260d61ebf19fb5a101 (diff) | |
parent | 4fc96ebb7b51333497a126658989cb85669aa6dd (diff) | |
download | nextcloud-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.js | 4 |
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; } |