Index: sdk/lib/io/http_impl.dart |
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart |
index 4a8d266a2fb10cbc5186ae5000db40eb0b87cb18..ede39a2418e518c3fc6b1ea5dba2681fca5107ac 100644 |
--- a/sdk/lib/io/http_impl.dart |
+++ b/sdk/lib/io/http_impl.dart |
@@ -2026,7 +2026,7 @@ class _HttpClient implements HttpClient { |
} |
} |
if (socketConnections == null || socketConnections.isEmpty) { |
- Socket socket = secure ? |
+ Socket socket = secure && proxy.isDirect ? |
new SecureSocket(connectHost, |
connectPort, |
sendClientCertificate: _sendClientCertificate, |