diff --git a/http/lib/src/utils.dart b/http/lib/src/utils.dart index 6faaf6d..b53acf7 100644 --- a/http/lib/src/utils.dart +++ b/http/lib/src/utils.dart @@ -21,7 +21,7 @@ String? httpDataAsStringOrNull(Object? data) { if (data is String) { return data; } else if (data is Uint8List) { - return utf8.decode(data.cast()); + return utf8.decode(data); } else if (data is Map) { return jsonEncode(data); } else if (data is List) {