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 /src/gui/updatewindow.cpp | |
parent | 0a7b74009490ce82b9749ead9702c01a29b5e8ec (diff) | |
download | mana-client-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.gz mana-client-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.bz2 mana-client-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.xz mana-client-4dbf232122056ac480456ce4df6725b76cb7a58b.zip |
Identify ourselves when requesting files from the update server.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |