commit 3ea5e988ed0817e690bc542222220267c5d36cba
parent 609a0d36751bf937050e6d99c0cf68ad32471c25
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 22 Apr 2021 20:24:06 +0200

sfeed.c: detect the proper mime-type for XHTML

Reference:
https://www.w3.org/2003/01/xhtml-mimetype/

Diffstat:
Msfeed.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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")) ||