added always using game version in requests to score server
authorHolger Schemel <info@artsoft.org>
Fri, 20 Aug 2021 14:26:15 +0000 (16:26 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 20 Aug 2021 14:26:15 +0000 (16:26 +0200)
src/files.c
src/screens.c

index 9c370e72497b5b1ff2657cd9c837fbf4ffa66ba3..927b2a3cc5da3cd63f7f503f8cbcf1a2f6e9c006 100644 (file)
@@ -9073,10 +9073,12 @@ static void DownloadServerScoreToCacheExt(struct HttpRequest *request,
   snprintf(request->body, MAX_HTTP_BODY_SIZE,
           "{\n"
           "%s"
+          "  \"game_version\":         \"%s\",\n"
           "  \"levelset_identifier\":  \"%s\",\n"
           "  \"level_nr\":             \"%d\"\n"
           "}\n",
           getPasswordJSON(setup.api_server_password),
+          getProgramRealVersionString(),
           levelset.identifier, level_nr);
 
   ConvertHttpRequestBodyToServerEncoding(request);
index 5c78347a48605fd0477c76623faa0718e087d687..23e0b113c01b0bc4f52424330a6dad50889ba5f5 100644 (file)
@@ -4055,10 +4055,12 @@ static void RenamePlayerOnServerExt(struct HttpRequest *request,
   snprintf(request->body, MAX_HTTP_BODY_SIZE,
           "{\n"
           "%s"
+          "  \"game_version\":         \"%s\",\n"
           "  \"name\":                 \"%s\",\n"
           "  \"uuid\":                 \"%s\"\n"
           "}\n",
           getPasswordJSON(setup.api_server_password),
+          getProgramRealVersionString(),
           player_name,
           player_uuid);