Skip to content

Commit 3f2064f

Browse files
authored
Decode bodyBytes by utf8 (#10)
1 parent f7a263c commit 3f2064f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/node/node.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class Node implements INode {
277277
throw HttpException(response.statusCode);
278278
}
279279

280-
return Tracks(jsonDecode(response.body) as Map<String, dynamic>);
280+
return Tracks(jsonDecode(utf8.decode(response.bodyBytes)) as Map<String, dynamic>);
281281
}
282282

283283
/// Searches a provided query on selected platform (YouTube by default),

0 commit comments

Comments
 (0)