From 1da08994dff307a02efce6df361e4e3a68ae9610 Mon Sep 17 00:00:00 2001 From: "Md. Touhidur Rahman" <46617994+touhidurrr@users.noreply.github.com> Date: Sat, 10 Dec 2022 22:38:53 +0600 Subject: [PATCH] fix `UncivServer.xyz` not working (#8104) Normally this is auto-fixed but a `/` at the end of the URL does not work. Because in API you do requests like `GET /file/:filename` and if you also put a `/` at the end of the server URL, it becomes something like this `https://example.com//files/filename`. Since the auto-fix happens only when typing a new URL from `Options` > `Multiplayer`, the default value doesn't get auto-fixed and shows errors. I tested on a new installation and as expected it shows the `Couldn't upload game` error. This pr fixes this. --- core/src/com/unciv/Constants.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/Constants.kt b/core/src/com/unciv/Constants.kt index 7f35a480e3..47e7384aa2 100644 --- a/core/src/com/unciv/Constants.kt +++ b/core/src/com/unciv/Constants.kt @@ -80,7 +80,7 @@ object Constants { const val uniqueOrDelimiter = "\" OR \"" const val dropboxMultiplayerServer = "Dropbox" - const val uncivXyzServer = "https://uncivserver.xyz/" + const val uncivXyzServer = "https://uncivserver.xyz" const val defaultTileset = "HexaRealm" const val defaultUnitset = "AbsoluteUnits"