You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/05/25 14:10:15 UTC
cvs commit: maven-new/fetch/src/main/java/org/apache/maven/fetch/fetchers HttpFetcher.java
bwalding 2003/05/25 05:10:14
Modified: fetch/src/main/java/org/apache/maven/fetch/fetchers
HttpFetcher.java
Log:
Make sure the correct stream is used, and that it is flushed and closed when finished.
Revision Changes Path
1.3 +4 -2 maven-new/fetch/src/main/java/org/apache/maven/fetch/fetchers/HttpFetcher.java
Index: HttpFetcher.java
===================================================================
RCS file: /home/cvs/maven-new/fetch/src/main/java/org/apache/maven/fetch/fetchers/HttpFetcher.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HttpFetcher.java 25 May 2003 12:07:49 -0000 1.2
+++ HttpFetcher.java 25 May 2003 12:10:14 -0000 1.3
@@ -135,8 +135,10 @@
throw new ProxyNotAuthorizedFetchException(connection.getResponseMessage());
}
- OutputStream os = request.getOutputStream();
+ OutputStream os = request.getFinalOutputStream();
IOUtility.transferStream(connection.getInputStream(), os);
+ os.flush();
+ os.close();
}
catch (FetchException e)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org