summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-22 10:26:51 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-01-22 10:26:51 +0000
commit4dbf232122056ac480456ce4df6725b76cb7a58b (patch)
treee8b3a888af859fece9a528656772485949d7663b /src/gui/updatewindow.cpp
parent0a7b74009490ce82b9749ead9702c01a29b5e8ec (diff)
downloadmana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.gz
mana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.bz2
mana-4dbf232122056ac480456ce4df6725b76cb7a58b.tar.xz
mana-4dbf232122056ac480456ce4df6725b76cb7a58b.zip
Identify ourselves when requesting files from the update server.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp5
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);