commons-httpclient, don't try to handle 401s internally

This commit is contained in:
Noah Levitt
2012-07-26 18:44:30 -07:00
parent 4e50c32578
commit 3efe8221cf
@@ -945,6 +945,9 @@ public class FetchHTTP extends AbstractFetchHTTP implements Lifecycle {
*/
protected HostConfiguration configureMethod(CrawlURI curi,
HttpMethod method) {
// Don't try to handle 401s internally.
method.setDoAuthentication(false);
// Don't auto-follow redirects
method.setFollowRedirects(false);