diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-22 10:26:51 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-22 10:26:51 +0000 |
commit | 4dbf232122056ac480456ce4df6725b76cb7a58b (patch) | |
tree | e8b3a888af859fece9a528656772485949d7663b | |
parent | 0a7b74009490ce82b9749ead9702c01a29b5e8ec (diff) | |
download | mana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.gz mana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.bz2 mana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.xz mana-4dbf232122056ac480456ce4df6725b76cb7a58b.zip |
Identify ourselves when requesting files from the update server.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/gui/updatewindow.cpp | 5 |
2 files changed, 11 insertions, 1 deletions
@@ -1,4 +1,9 @@ -2007-01-17 Eugenio Favalli <elvenprogrammer@gmail.com> +2007-01-22 Bjørn Lindeijer <bjorn@lindeijer.nl> + + * src/gui/updatewindow.cpp: Identify ourselves when requesting files from + the update server. + +2007-01-17 Eugenio Favalli <elvenprogrammer@gmail.com> * docs/win32-release.txt, src/gui/register.cpp, src/main.cpp: Changed default server. diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 99c09baa..c2b00d26 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -269,6 +269,11 @@ int UpdaterWindow::downloadThread(void *ptr) curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile); } +#ifdef PACKAGE_VERSIONd + curl_easy_setopt(curl, CURLOPT_USERAGENT, "TMW/" PACKAGE_VERSION); +#else + curl_easy_setopt(curl, CURLOPT_USERAGENT, "TMW"); +#endif curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, uw->mCurlError); curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0); |