aboutsummaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
diff options
context:
space:
mode:
authorShadowNinja <ShadowNinja@users.noreply.github.com>2022-01-01 16:44:56 -0500
committerGitHub <noreply@github.com>2022-01-01 22:44:56 +0100
commit29d2b2ccd06cdd831a7fac66928bfa612003945c (patch)
tree408d8930084bab87a26af73aa4548399756cebf2 /src/serverlist.cpp
parent544b9d5c72f690d6a729053616d26e023f7e0e28 (diff)
downloadminetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.tar.gz
minetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.tar.bz2
minetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.zip
Print announce error response (#11878)
Fix HTTPFetch caller and request ID to 64 bits Check that allocated caller ID is not DISCARD Print body if serverlist request returns error Don't print control characters from HTTP responses Document special HTTPFetch caller IDs Allow unicode to be printed
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r--src/serverlist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp
index 3bcab3d58..29e3ac9a6 100644
--- a/src/serverlist.cpp
+++ b/src/serverlist.cpp
@@ -97,6 +97,7 @@ void sendAnnounce(AnnounceAction action,
}
HTTPFetchRequest fetch_request;
+ fetch_request.caller = HTTPFETCH_PRINT_ERR;
fetch_request.url = g_settings->get("serverlist_url") + std::string("/announce");
fetch_request.method = HTTP_POST;
fetch_request.fields["json"] = fastWriteJson(server);