Fix rendering error on post interactions by ensuring utf8 decoding of result

codemagic-setup
Hank Grabowski 2022-12-12 22:57:32 -05:00
rodzic 44f6fed15b
commit 81f70cca08
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -299,7 +299,7 @@ class FriendicaClient {
type: ErrorType.authentication,
message: '${response.statusCode}: ${response.reasonPhrase}'));
}
return Result.ok(response.body);
return Result.ok(utf8.decode(response.bodyBytes));
} catch (e) {
return Result.error(
ExecError(type: ErrorType.localError, message: e.toString()));