diff options
author | Kahrl <kahrl@gmx.net> | 2013-08-29 05:58:13 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-12-13 18:05:39 +0100 |
commit | b03135548bbd9bcb73d14b067b96ec913404dd5f (patch) | |
tree | 7638bb8a6372ab540e0e4783b79b9242005a9948 /src/httpfetch.cpp | |
parent | 0a903e69fbd9b19d8d8da0593f31dec5807af566 (diff) | |
download | minetest-b03135548bbd9bcb73d14b067b96ec913404dd5f.tar.gz minetest-b03135548bbd9bcb73d14b067b96ec913404dd5f.tar.bz2 minetest-b03135548bbd9bcb73d14b067b96ec913404dd5f.zip |
Use httpfetch_async in serverlist announce code
Diffstat (limited to 'src/httpfetch.cpp')
-rw-r--r-- | src/httpfetch.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp index 4342a8b2a..25474c725 100644 --- a/src/httpfetch.cpp +++ b/src/httpfetch.cpp @@ -206,6 +206,10 @@ struct HTTPFetchOngoing request.timeout); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, request.connect_timeout); + + if (request.useragent != "") + curl_easy_setopt(curl, CURLOPT_USERAGENT, request.useragent.c_str()); + // Set up a write callback that writes to the // ostringstream ongoing->oss, unless the data // is to be discarded |