You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2003/02/26 03:33:15 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/multipart FilePart.java
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