From dc0ecd8e51b27c6ea8e3d8ac3821bc9b875bb88b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 16 May 2010 20:01:12 +0000 Subject: Restored compatibility with Miranda 0.8 git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@515 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/xmldata.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'updater/xmldata.cpp') diff --git a/updater/xmldata.cpp b/updater/xmldata.cpp index 8fd81e1..2ef8e67 100644 --- a/updater/xmldata.cpp +++ b/updater/xmldata.cpp @@ -258,9 +258,12 @@ bool UpdateXMLData(const Category cat, const char *redirect_url /*= 0*/, int rec strcpy(URL, redirect_url); } req.szUrl = URL; - req.flags = NLHRF_HTTP11 | NLHRF_PERSISTENT | NLHRF_REDIRECT; + req.flags = NLHRF_HTTP11; req.nlc = hNetlibHttp; + if (CallService(MS_SYSTEM_GETVERSION, 0, 0) >= PLUGIN_MAKE_VERSION(0,9,0,5)) + req.flags |= NLHRF_PERSISTENT | NLHRF_REDIRECT; + NETLIBHTTPREQUEST *resp = (NETLIBHTTPREQUEST *)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)hNetlibUser, (LPARAM)&req); if(etag_hdr.szValue) free(etag_hdr.szValue); -- cgit v1.2.3