aboutsummaryrefslogtreecommitdiff
path: root/src/guiEngine.cpp
diff options
context:
space:
mode:
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