Skip to content

Commit

Permalink
Explicitly set cookie policy.
Browse files Browse the repository at this point in the history
Former-commit-id: cd56c4fb5d277de65d42406717005477bbcb6fa9
  • Loading branch information
dkocher committed Apr 15, 2013
1 parent 7a0eb36 commit e7f80d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/ch/cyberduck/core/http/HttpSession.java
Expand Up @@ -34,6 +34,7 @@
import org.apache.http.HttpResponse;
import org.apache.http.HttpResponseInterceptor;
import org.apache.http.auth.params.AuthParams;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.client.params.HttpClientParams;
import org.apache.http.client.protocol.RequestAcceptEncoding;
import org.apache.http.client.protocol.ResponseContentEncoding;
Expand Down Expand Up @@ -102,6 +103,7 @@ protected AbstractHttpClient http(final String hostname) {

HttpClientParams.setRedirecting(params, true);
HttpClientParams.setAuthenticating(params, true);
HttpClientParams.setCookiePolicy(params, CookiePolicy.BEST_MATCH);

// Sets the timeout in milliseconds used when retrieving a connection from the ClientConnectionManager
HttpClientParams.setConnectionManagerTimeout(params, Preferences.instance().getLong("http.manager.timeout"));
Expand Down

0 comments on commit e7f80d3

Please sign in to comment.