aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
authorproller <proler@github.com>2013-11-05 16:57:43 +0400
committerproller <proler@github.com>2013-11-06 00:50:32 +0400
commit8903c68460d79aeac6b1c5074003743f98371339 (patch)
treef96de4f3e1398b68e3316a9641f31ef0aad996af /src/guiEngine.cpp
parent6f44492238c89079402a984466d037f4558924e6 (diff)
downloadminetest-8903c68460d79aeac6b1c5074003743f98371339.tar.gz
minetest-8903c68460d79aeac6b1c5074003743f98371339.tar.bz2
minetest-8903c68460d79aeac6b1c5074003743f98371339.zip
Correct useragent in http queries
Net struct init
Diffstat (limited to 'src/guiEngine.cpp')
-rw-r--r--src/guiEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiEngine.cpp b/src/guiEngine.cpp
index a96a832c4..d5f528f3b 100644
--- a/src/guiEngine.cpp
+++ b/src/guiEngine.cpp
@@ -532,7 +532,7 @@ bool GUIEngine::downloadFile(std::string url,std::string target) {
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, targetfile);
-
+ curl_easy_setopt(curl, CURLOPT_USERAGENT, (std::string("Minetest ")+minetest_version_hash).c_str());
res = curl_easy_perform(curl);
if (res != CURLE_OK) {
errorstream << "File at url \"" << url