Chromium Code Reviews| Index: sdk/lib/io/http_impl.dart |
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
| index bd382bccc28d645f8faae0cee7bfd58069cb6433..4b954ebcaac314203897e2efe65856df54cc8a81 100644 |
| --- a/sdk/lib/io/http_impl.dart |
| +++ b/sdk/lib/io/http_impl.dart |
| @@ -1883,7 +1883,7 @@ class _HttpClient implements HttpClient { |
| // On error, continue with next proxy. |
| .catchError(connect); |
| } |
| - return connect(new HttpException("No proxies given")); |
| + return new Future(() => connect(new HttpException("No proxies given"))); |
|
Lasse Reichstein Nielsen
2015/04/21 12:11:13
Please document why this is being done.
|
| } |
| _SiteCredentials _findCredentials(Uri url, [_AuthenticationScheme scheme]) { |