This commit is contained in:
Kevin Wan
2022-04-28 11:25:26 +08:00
committed by GitHub
parent cc09ab2aba
commit cef83efd4e
5 changed files with 9 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ suspend fun apiRequest(
requestMethod = method
doInput = true
if (method == "POST" || method == "PUT" || method == "PATCH") {
setRequestProperty("Content-Type", "application/json")
setRequestProperty("Content-Type", "application/json; charset=utf-8")
doOutput = true
val data = when (body) {
is String -> {