summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 20:14:31 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 20:14:31 +0100
commit242559a6cdfe5ad7d021a50995bda916ee41dfc8 (patch)
tree183cbf0d5a9faad192603621bc953e65f6dee728
parent9a52f59fc546d509dc1a859c6cce92f99e31f46d (diff)
sfeed_web: just assume rss/atom for application/xml too
-rw-r--r--sfeed_web.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfeed_web.c b/sfeed_web.c
index 608615a..bb9612a 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -60,6 +60,7 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name,
} else if(islink) {
if(!strncasecmp(name, "type", namelen)) {
if(!strncasecmp(value, "application/atom", strlen("application/atom")) ||
+ !strncasecmp(value, "application/xml", strlen("application/xml")) ||
!strncasecmp(value, "application/rss", strlen("application/rss"))) {
isfeedlink = 1;
strlcpy(feedtype, value, sizeof(feedtype));