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 8cc775a351a46764eba084a1185ff6d613beeb61..764a215ec914568ad8fbeb765bc537137d9963cb 100644 |
--- a/pkg/http/lib/src/io_client.dart |
+++ b/pkg/http/lib/src/io_client.dart |
@@ -73,7 +73,10 @@ class IOClient extends BaseClient { |
reasonPhrase: response.reasonPhrase)); |
}; |
- return pipeCompleter.future.then((_) => completer.future); |
+ return Futures.wait([ |
+ completer.future, |
+ pipeCompleter.future |
+ ]).then((values) => values.first); |
} |
/// Closes the client. This terminates all active connections. If a client |