commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart FilePart.java
Date Wed, 26 Feb 2003 02:33:15 GMT
mbecke      2003/02/25 18:33:15

  Modified:    httpclient/src/java/org/apache/commons/httpclient/methods/multipart
                        FilePart.java
  Log:
  FilePartSource input stream is now closed after writing.
  PR: 17409
  
  Revision  Changes    Path
  1.13      +6 -3      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart/FilePart.java
  
  Index: FilePart.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart/FilePart.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- FilePart.java	25 Feb 2003 02:10:17 -0000	1.12
  +++ FilePart.java	26 Feb 2003 02:33:15 -0000	1.13
  @@ -299,6 +299,9 @@
           while ((len = instream.read(tmp)) >= 0) {
               out.write(tmp, 0, len);
           }
  +        
  +        // we're done with the stream, close it
  +        instream.close();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
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