Index: sdk/lib/io/http_impl.dart |
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
index 0f7dafec84211fab9eca808a6e8ce294a21606fc..eefd9c87837193247c336a6fcb2741710307fb15 100644 |
--- a/sdk/lib/io/http_impl.dart |
+++ b/sdk/lib/io/http_impl.dart |
@@ -724,7 +724,7 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse> |
} |
} |
- Future<HttpClientResponse> get response { |
+ Future<HttpClientResponse> get done { |
if (_response == null) { |
_response = Future.wait([_responseCompleter.future, super.done]) |
.then((list) => list[0]); |
@@ -732,16 +732,14 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse> |
return _response; |
} |
- Future<HttpClientResponse> get done => response; |
- |
Future<HttpClientResponse> consume(Stream<List<int>> stream) { |
super.consume(stream); |
- return response; |
+ return done; |
} |
Future<HttpClientResponse> close() { |
super.close(); |
- return response; |
+ return done; |
} |
int get maxRedirects => _maxRedirects; |