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:
TrojkaDevil 2020-08-17 11:29:37 +00:00 committed by GitHub
parent 9022a1098a
commit 9c4afe3929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ class UiRequest(object):
else: # It's a file
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