diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-12 10:22:34 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-12 10:22:34 +0000 |
commit | 23cf36271ec9b7fedd439b251a6785cdd4c861ae (patch) | |
tree | ff9e899de57082c72a2c5214ec9e46a608f944cf /plugins/PluginUpdater/src | |
parent | dc3119168593903bd05dcfe73e62f388e541b96f (diff) |
PluginUpdater: Use Persistent connection only for Miranda IM 0.9.0 and newer.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 040dc72319..2da1d5080d 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -275,7 +275,9 @@ BOOL DownloadFile(LPCTSTR tszURL, LPCTSTR tszLocal, int CRCsum, HANDLE &nlc) nlhr.cbSize = sizeof(nlhr);
#endif
nlhr.requestType = REQUEST_GET;
- nlhr.flags = NLHRF_DUMPASTEXT | NLHRF_HTTP11 | NLHRF_PERSISTENT;
+ nlhr.flags = NLHRF_DUMPASTEXT | NLHRF_HTTP11;
+ if (mirandaVersion >= PLUGIN_MAKE_VERSION(0, 9, 0, 0))
+ nlhr.flags |= NLHRF_PERSISTENT;
nlhr.nlc = nlc;
char *szUrl = mir_t2a(tszURL);
nlhr.szUrl = szUrl;
|