This commit is contained in:
Tibor Bossanyi
2023-03-19 19:22:11 +01:00
parent 27299ed266
commit 1c3310716c
5 changed files with 40 additions and 40 deletions
+1 -3
View File
@@ -103,9 +103,7 @@ class APIWebClient with Common, Logging {
log(" ------------get response code: ${result.statusCode}");
if (result.statusCode == 200) {
List<int> bytes = result.body.codeUnits;
String decodedString = utf8.decode(bytes);
return decodedString;
return result.body;
} else if (result.statusCode == 404) {
throw const NotFoundException(message: "Not Found");
} else {