Merge pull request #567 from dannon/datatypes_registry_lower

Normalize datatypes_by_ext upon entry
This commit is contained in:
Nitesh Turaga
2015-08-06 12:21:20 -04:00
+2
View File
@@ -126,6 +126,8 @@ class Registry( object ):
# Keep a status of the process steps to enable stopping the process of handling the datatype if necessary.
ok = True
extension = elem.get( 'extension', None )
if extension:
extension = extension.lower()
dtype = elem.get( 'type', None )
type_extension = elem.get( 'type_extension', None )
mimetype = elem.get( 'mimetype', None )