Skip to content

Commit

Permalink
feat: httpData as Map & String utils
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Aug 16, 2024
1 parent d820d8f commit 02203ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ String? httpDataAsStringOrNull(Object? data) {
if (data is String) {
return data;
} else if (data is Uint8List) {
return utf8.decode(data.cast<int>());
return utf8.decode(data);
} else if (data is Map) {
return jsonEncode(data);
} else if (data is List) {
Expand Down

0 comments on commit 02203ab

Please sign in to comment.