Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-22 19:56:31 +0000
committermkersten2006-12-22 19:56:31 +0000
commit5825ed8ac443c9ec1809d88b926afcfcc9052c2b (patch)
tree21f23b674715529a00e84cb38809f33aeef8dd95 /org.eclipse.mylyn.tasks.core
parent215e5e8e5591f54449fb54e434036053e059509f (diff)
downloadorg.eclipse.mylyn.tasks-5825ed8ac443c9ec1809d88b926afcfcc9052c2b.tar.gz
org.eclipse.mylyn.tasks-5825ed8ac443c9ec1809d88b926afcfcc9052c2b.tar.xz
org.eclipse.mylyn.tasks-5825ed8ac443c9ec1809d88b926afcfcc9052c2b.zip
NEW - bug 167282: Fetching a resource makes false assumptions about the URL when redirecting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=167282
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/WebClientUtil.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/WebClientUtil.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/WebClientUtil.java
index f51f52803..19e8114d2 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/WebClientUtil.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/WebClientUtil.java
@@ -19,6 +19,7 @@ import org.apache.commons.httpclient.Credentials;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.auth.AuthScope;
+import org.apache.commons.httpclient.params.HttpClientParams;
import org.apache.commons.httpclient.protocol.Protocol;
import org.eclipse.mylar.internal.tasks.core.AuthenticatedProxy;
import org.eclipse.mylar.internal.tasks.core.SslProtocolSocketFactory;
@@ -109,6 +110,8 @@ public class WebClientUtil {
public static void setupHttpClient(HttpClient client, Proxy proxySettings, String repositoryUrl, String user,
String password) {
+ client.getParams().setBooleanParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true);
+
// Note: The following debug code requires http commons-logging and
// commons-logging-api jars
//System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");

Back to the top