diff options
author | ShadowNinja <ShadowNinja@users.noreply.github.com> | 2022-01-01 16:44:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-01 22:44:56 +0100 |
commit | 29d2b2ccd06cdd831a7fac66928bfa612003945c (patch) | |
tree | 408d8930084bab87a26af73aa4548399756cebf2 /src/serverlist.cpp | |
parent | 544b9d5c72f690d6a729053616d26e023f7e0e28 (diff) | |
download | minetest-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.cpp | 1 |
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); |