summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-03-22 22:38:36 +0000
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-03-22 22:38:36 +0000
commit1c0029b3d484076c6832035c3f129805f74fdc75 (patch)
tree379e5e994315dea64ef5c38cd6f9d68bfca7e2da
parent063dc6e3d567c01465724596148bb9ab31852ecb (diff)
try xml parsing on html content-types to account for asshole sites that don't know how to set content-type
-rw-r--r--src/lib/azy/azy_client_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/azy/azy_client_events.c b/src/lib/azy/azy_client_events.c
index 005c3f9..2f774f9 100644
--- a/src/lib/azy/azy_client_events.c
+++ b/src/lib/azy/azy_client_events.c
@@ -151,6 +151,8 @@ _azy_client_handler_get(Azy_Client_Handler_Data *hd)
151 } 151 }
152 content->ret = ret; 152 content->ret = ret;
153 break; 153 break;
154 case AZY_NET_TRANSPORT_HTML: //some asshole sites don't correctly report rss content-type
155 if (azy_content_deserialize_xml(content, (char*)EBUF(hd->recv->buffer), EBUFLEN(hd->recv->buffer))) break;
154 default: 156 default:
155 content->ret = hd->recv->buffer; 157 content->ret = hd->recv->buffer;
156 hd->recv->buffer = NULL; 158 hd->recv->buffer = NULL;