summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2021-04-22 20:24:06 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-04-27 18:43:46 +0200
commit3ea5e988ed0817e690bc542222220267c5d36cba (patch)
treecd08042454bd8d14a1b6a2a7b9e220cbffd0b0f7
parent609a0d36751bf937050e6d99c0cf68ad32471c25 (diff)
sfeed.c: detect the proper mime-type for XHTML
Reference: https://www.w3.org/2003/01/xhtml-mimetype/
-rw-r--r--sfeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index 43a0ca7..98b2bb5 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -706,7 +706,8 @@ xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
if (isattr(v, vl, STRP("html")) ||
isattr(v, vl, STRP("xhtml")) ||
isattr(v, vl, STRP("text/html")) ||
- isattr(v, vl, STRP("text/xhtml"))) {
+ isattr(v, vl, STRP("text/xhtml")) ||
+ isattr(v, vl, STRP("application/xhtml+xml"))) {
tmpcontenttype = ContentTypeHTML;
} else if (isattr(v, vl, STRP("text")) ||
isattr(v, vl, STRP("plain")) ||