summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--dpi/file.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 88c16e21..408c0ffd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -65,6 +65,7 @@ dillo-3.1 [not released yet]
- Fix W3C validator and remove broken WDG validator.
- Simplify bookmark DPI page style and improve readability.
- Improve the Dillo manual available from the help button.
+ - Improve detection of XHTML documents
Patches: Rodrigo Arias Mallo <rodarima@gmail.com>
-----------------------------------------------------------------------------
diff --git a/dpi/file.c b/dpi/file.c
index 5fef5fb9..d84f4b64 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -511,6 +511,7 @@ static const char *File_ext(const char *filename)
} else if (!dStrAsciiCasecmp(e, "png")) {
return "image/png";
} else if (!dStrAsciiCasecmp(e, "html") ||
+ !dStrAsciiCasecmp(e, "xhtml") ||
!dStrAsciiCasecmp(e, "htm") ||
!dStrAsciiCasecmp(e, "shtml")) {
return "text/html";