From 3efe8221cf70b219ed4e8d401743c5eb0c0b7304 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Thu, 26 Jul 2012 18:44:30 -0700 Subject: [PATCH] commons-httpclient, don't try to handle 401s internally --- .../src/main/java/org/archive/modules/fetcher/FetchHTTP.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java b/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java index 1bf48eb9..fd743916 100644 --- a/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java +++ b/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java @@ -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);