summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_update.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-07 20:36:31 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-07 20:36:31 +0000
commit0bf13f208abe2713455ba8e2d9ffb752233fcc24 (patch)
tree1aac80de79699b448f7bc88c5f7b8fb51304ad06 /plugins/Weather/src/weather_update.cpp
parent3a3ae2263b70483741017e01340d4898248138d2 (diff)
Weather: Add support for specifying own UserAgent in INI (requested in #810)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_update.cpp')
-rw-r--r--plugins/Weather/src/weather_update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Weather/src/weather_update.cpp b/plugins/Weather/src/weather_update.cpp
index 584b99f927..b5b0c582ed 100644
--- a/plugins/Weather/src/weather_update.cpp
+++ b/plugins/Weather/src/weather_update.cpp
@@ -429,7 +429,7 @@ int GetWeatherData(MCONTACT hContact)
// download the html file from the internet
TCHAR* szData = NULL;
- int retval = InternetDownloadFile(loc, Data->Cookie, &szData);
+ int retval = InternetDownloadFile(loc, Data->Cookie, Data->UserAgent, &szData);
if (retval != 0) {
mir_free(szData);
return retval;