XHTML IS NOT HTML
First the XHTML MIME not declared under content_types, second XHTML is NOT HTML! See: https://www.w3.org/2003/01/xhtml-mimetype/
This commit is contained in:
parent
9022a1098a
commit
9c4afe3929
|
@ -346,7 +346,7 @@ class UiRequest(object):
|
||||||
else: # It's a file
|
else: # It's a file
|
||||||
content_type = self.getContentType(inner_path)
|
content_type = self.getContentType(inner_path)
|
||||||
|
|
||||||
is_html_file = "html" in content_type or "xhtml" in content_type
|
is_html_file = "html" in content_type
|
||||||
|
|
||||||
return is_html_file
|
return is_html_file
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue