| Index: pkg/http/lib/src/response.dart
|
| diff --git a/pkg/http/lib/src/response.dart b/pkg/http/lib/src/response.dart
|
| index 859b57a8b4361669310d9bb0f485885d8d1dd026..18084146134822d766d1d638b5f0e891bb2f9419 100644
|
| --- a/pkg/http/lib/src/response.dart
|
| +++ b/pkg/http/lib/src/response.dart
|
| @@ -66,7 +66,7 @@ class Response extends BaseResponse {
|
| /// Creates a new HTTP response by waiting for the full body to become
|
| /// available from a [StreamedResponse].
|
| static Future<Response> fromStream(StreamedResponse response) {
|
| - return consumeInputStream(response.stream).then((body) {
|
| + return response.stream.toBytes().then((body) {
|
| return new Response.bytes(
|
| body,
|
| response.statusCode,
|
|
|