From 3ea5e988ed0817e690bc542222220267c5d36cba Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 22 Apr 2021 20:24:06 +0200 Subject: sfeed.c: detect the proper mime-type for XHTML Reference: https://www.w3.org/2003/01/xhtml-mimetype/ --- sfeed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")) || -- cgit v1.2.3