Skip to content

Commit

Permalink
Fix xml mimetype check for centos
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Mar 12, 2021
1 parent 95a8233 commit 42eb42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmo/projects/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class RDMOXMLImport(Import):

def check(self):
file_type, encoding = mimetypes.guess_type(self.file_name)
if file_type == 'application/xml':
if file_type == 'application/xml' or file_type == 'text/xml':
self.root = read_xml_file(self.file_name)
if self.root and self.root.tag == 'project':
self.ns_map = get_ns_map(self.root)
Expand Down

0 comments on commit 42eb42a

Please sign in to comment.