mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use httpfetch_async in serverlist announce code
This commit is contained in:
parent
0a903e69fb
commit
b03135548b
3 changed files with 17 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue