o MAVEN-283: Follow redirects

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding committed 2003-03-10 14:20:21 +00:00
1 parent ed1d38ef2e
commit a61110a788
1 file changed
+2 -1
@@ -67,7 +67,7 @@ import org.apache.commons.logging.LogFactory;
/**
* Checks links which are normal URLs
* @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
* @version $Id: HTTPLinkValidator.java,v 1.5 2003/03/07 21:44:45 bwalding Exp $
* @version $Id: HTTPLinkValidator.java,v 1.6 2003/03/10 14:20:21 bwalding Exp $
*/
public class HTTPLinkValidator implements LinkValidator
{
@@ -133,6 +133,7 @@ public class HTTPLinkValidator implements LinkValidator
GetMethod get = new GetMethod(link);
cl.setState(state);
get.setFollowRedirects(true);
// execute the GET
int status = 404;