am 9340bb2a: Fixed problem using HTTPS with Apache HTTP Client when using proxy
Merge commit '9340bb2a4b5f828b418c0e77492dde148623c938' into gingerbread-plus-aosp
* commit '9340bb2a4b5f828b418c0e77492dde148623c938':
Fixed problem using HTTPS with Apache HTTP Client when using proxy
diff --git a/src/org/apache/http/impl/conn/DefaultClientConnectionOperator.java b/src/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
index 67e6bb0..fbc762d 100644
--- a/src/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
+++ b/src/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
@@ -223,7 +223,7 @@
final Socket sock;
try {
sock = lsf.createSocket
- (conn.getSocket(), target.getHostName(), target.getPort(), true);
+ (conn.getSocket(), target.getHostName(), schm.resolvePort(target.getPort()), true);
} catch (ConnectException ex) {
throw new HttpHostConnectException(target, ex);
}