diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-05-16 20:01:12 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-05-16 20:01:12 +0000 |
commit | dc0ecd8e51b27c6ea8e3d8ac3821bc9b875bb88b (patch) | |
tree | 1704e5f0ce277286a76f5a9fa36572c24a671ede | |
parent | 6d1c8f0545fc423af419e2dcdafbc2c79fd60a50 (diff) |
Restored compatibility with Miranda 0.8
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@515 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | updater/xmldata.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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);
|