You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2013/03/05 22:24:29 UTC
svn commit: r1453004 -
/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java
Author: maartenc
Date: Tue Mar 5 21:24:28 2013
New Revision: 1453004
URL: http://svn.apache.org/r1453004
Log:
Attempt to improve HTTP upload speed (IVY-1197)
Modified:
ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java
Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java?rev=1453004&r1=1453003&r2=1453004&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/HttpClientHandler.java Tue Mar 5 21:24:28 2013
@@ -131,6 +131,7 @@ public class HttpClientHandler extends A
PutMethod put = new PutMethod(normalizeToString(dest));
put.setDoAuthentication(useAuthentication(dest) || useProxyAuthentication());
+ put.getParams().setBooleanParameter("http.protocol.expect-continue", true);
try {
put.setRequestEntity(new FileRequestEntity(src));
int statusCode = client.executeMethod(put);