commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnection.java
Date Sat, 08 Nov 2003 21:26:03 GMT
olegk       2003/11/08 13:26:03

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  Fixes a minor bug in my previos patch (Input stream not properly 'wrapped' when secure tunnel
(SSL via proxy) is being established).
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.80      +6 -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.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- HttpConnection.java	5 Nov 2003 20:45:34 -0000	1.79
  +++ HttpConnection.java	8 Nov 2003 21:26:03 -0000	1.80
  @@ -782,7 +782,8 @@
           if (rcvBufSize >= 0) {
               socket.setReceiveBufferSize(rcvBufSize);
           }        
  -        inputStream = new PushbackInputStream(socket.getInputStream());
  +        inputStream = new PushbackInputStream(
  +            new WrappedInputStream(socket.getInputStream()));
           outputStream = new BufferedOutputStream(
               new WrappedOutputStream(socket.getOutputStream()),
               socket.getSendBufferSize()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message