diff options
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r-- | src/serverlist.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp index 8a85b33b3..315e23688 100644 --- a/src/serverlist.cpp +++ b/src/serverlist.cpp @@ -230,11 +230,8 @@ void sendAnnounce(std::string action, const std::vector<std::string> & clients_n Json::FastWriter writer; HTTPFetchRequest fetchrequest; fetchrequest.url = g_settings->get("serverlist_url") + std::string("/announce"); - std::string query = std::string("json=") + urlencode(writer.write(server)); - if (query.size() < 1000) - fetchrequest.url += "?" + query; - else - fetchrequest.post_fields = query; + fetchrequest.post_fields["json"] = writer.write(server); + fetchrequest.multipart = true; httpfetch_async(fetchrequest); } #endif |