Index: pkg/http/lib/src/io_client.dart |
diff --git a/pkg/http/lib/src/io_client.dart b/pkg/http/lib/src/io_client.dart |
index 9bbb7ee00a4f5113ed9d25fb0097261b1358e13f..b7a67309b51c5b2b70d11c4942f1562e9408c085 100644 |
--- a/pkg/http/lib/src/io_client.dart |
+++ b/pkg/http/lib/src/io_client.dart |
@@ -32,8 +32,7 @@ class IOClient extends BaseClient { |
request.headers.forEach((name, value) { |
ioRequest.headers.set(name, value); |
}); |
- return Future.wait([stream.pipe(ioRequest), ioRequest.response]) |
- .then((list) => list[1]); |
+ return stream.pipe(ioRequest); |
}).then((response) { |
var headers = {}; |
response.headers.forEach((key, values) { |