From c138fbc385a16031d45507191f39564b99436d09 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 7 Aug 2019 22:14:23 +0300 Subject: [PATCH] Fixed "can't download map on Android" bug --- core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt b/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt index 5ea56f7e08..490e0b6ce3 100644 --- a/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt +++ b/core/src/com/unciv/ui/worldscreen/optionstable/DropBox.kt @@ -55,7 +55,7 @@ class DropBox(){ fun downloadFile(fileName:String):String{ val response = dropboxApi("https://content.dropboxapi.com/2/files/download", - dropboxApiArg = "{\"path\":\"$fileName\"}") + contentType = "text/plain",dropboxApiArg = "{\"path\":\"$fileName\"}") return response }