sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 242559a6cdfe5ad7d021a50995bda916ee41dfc8
parent 9a52f59fc546d509dc1a859c6cce92f99e31f46d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 11 Nov 2014 20:14:31 +0100

sfeed_web: just assume rss/atom for application/xml too

Diffstat:
Msfeed_web.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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