aboutsummaryrefslogtreecommitdiffstats
path: root/Mime.php
diff options
context:
space:
mode:
authorBen Getsug <ben@shift31.com>2015-06-30 15:09:23 -0500
committerBen Getsug <ben@shift31.com>2015-06-30 15:09:23 -0500
commit4818b2cec5f104759653c9cd15da4013ea6d7b31 (patch)
treeb4b6d3678aca55c199ce0958028812b560c64706 /Mime.php
parent2c35a56a61d8d40257b107581c2f6fb21ae04d81 (diff)
downloadMime-4818b2cec5f104759653c9cd15da4013ea6d7b31.zip
Mime-4818b2cec5f104759653c9cd15da4013ea6d7b31.tar.gz
Mime-4818b2cec5f104759653c9cd15da4013ea6d7b31.tar.bz2
Support uppercase file extensions
Diffstat (limited to 'Mime.php')
-rw-r--r--Mime.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mime.php b/Mime.php
index 846be2a..dacf41e 100644
--- a/Mime.php
+++ b/Mime.php
@@ -327,6 +327,8 @@ class Mime implements Core\Parameter\Parameterizable
*/
public static function getMimeFromExtension($extension)
{
+ $extension = strtolower($extension);
+
if (false === static::extensionExists($extension)) {
return null;
}