Browse Source

Always treat Content-Type case-insensitively (#1732092).
Thanks Rich Pinkall Pollei!

Thijs Kinkhorst 18 years ago
parent
commit
fc3206645c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      class/mime/ContentType.class.php

+ 1 - 0
class/mime/ContentType.class.php

@@ -46,6 +46,7 @@ class ContentType {
      * @param string $type content type string without auxiliary information
      */
     function ContentType($type) {
+        $type = strtolower($type);
         $pos = strpos($type, '/');
         if ($pos > 0) {
             $this->type0 = substr($type, 0, $pos);