diff options
-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); |