You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by og...@apache.org on 2003/01/13 16:51:13 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnection.java

oglueck     2003/01/13 07:51:13

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  Fixed problem with proxied https connection.
  
  Contributed by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  1.29      +5 -5      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java
  
  Index: HttpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- HttpConnection.java	16 Dec 2002 03:51:04 -0000	1.28
  +++ HttpConnection.java	13 Jan 2003 15:51:13 -0000	1.29
  @@ -433,7 +433,7 @@
                   final String host = (null == _proxyHost) ? _host : _proxyHost;
                   final int port = (null == _proxyHost) ? _port : _proxyPort;
                   
  -                _usingSecureSocket = _protocol.isSecure();                
  +                _usingSecureSocket = isSecure() && !isProxied();                
                   
                   final SocketFactory socketFactory = (
                       isSecure() && !isProxied()
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>