]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/guiEngine.cpp
Fix typo in lua_api.txt
[dragonfireclient.git] / src / guiEngine.cpp
index a96a832c452b1a9ad49c48ff12385b9ed0033907..d5f528f3b0ed30501a9de0399380b474ee38be6a 100644 (file)
@@ -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