diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-22 20:24:06 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-04-27 18:43:46 +0200 |
commit | 3ea5e988ed0817e690bc542222220267c5d36cba (patch) | |
tree | cd08042454bd8d14a1b6a2a7b9e220cbffd0b0f7 | |
parent | 609a0d36751bf937050e6d99c0cf68ad32471c25 (diff) |
sfeed.c: detect the proper mime-type for XHTML
Reference:
https://www.w3.org/2003/01/xhtml-mimetype/
-rw-r--r-- | sfeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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")) || |