Skip to content

Commit

Permalink
Merge pull request #1318 from woprandi/master
Browse files Browse the repository at this point in the history
Fix download performance issue on Web
  • Loading branch information
wendux committed Nov 15, 2021
2 parents 82998a7 + c9c6fb3 commit 3243fb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dio/lib/src/adapter.dart
Expand Up @@ -93,6 +93,5 @@ class ResponseBody {
this.headers = const {},
this.statusMessage,
this.isRedirect = false,
}) : stream = Stream.fromIterable(
bytes.map((e) => Uint8List.fromList([e])).toList());
}) : stream = Stream.value(Uint8List.fromList(bytes));
}

0 comments on commit 3243fb2

Please sign in to comment.