maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r485102 - /maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java
Date Sun, 10 Dec 2006 00:27:14 GMT
Author: joakime
Date: Sat Dec  9 16:27:13 2006
New Revision: 485102

URL: http://svn.apache.org/viewvc?view=rev&rev=485102
Log:
Correct the 'follow redirects' warning message.

Modified:
    maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java

Modified: maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java?view=diff&rev=485102&r1=485101&r2=485102
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-webdav/src/main/java/org/apache/maven/wagon/providers/webdav/CorrectedWebdavResource.java
Sat Dec  9 16:27:13 2006
@@ -52,6 +52,7 @@
         throws IOException
     {
         super( url );
+        setFollowRedirects( true ); // TODO: Make this configurable.
     }
 
     public void setHeaders( Map headers )
@@ -88,10 +89,10 @@
     public InputStream getMethodData( String path )
         throws IOException
     {
-
         setClient();
 
         GetMethod method = new GetMethod( URIUtil.encodePathQuery( path ) );
+        method.setFollowRedirects( super.followRedirects );
 
         generateTransactionHeader( method );
         generateAdditionalHeaders( method );
@@ -142,6 +143,7 @@
 
         setClient();
         PutMethod method = new PutMethod( URIUtil.encodePathQuery( path ) );
+        method.setFollowRedirects( super.followRedirects );
         generateIfHeader( method );
         if ( getGetContentType() != null && !getGetContentType().equals( "" ) )
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message