You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2015/05/19 12:14:39 UTC
[3/6] incubator-slider git commit: SLIDER-878 turn off method
workaround
SLIDER-878 turn off method workaround
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/13ec0af5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/13ec0af5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/13ec0af5
Branch: refs/heads/develop
Commit: 13ec0af54944fb2327d9123a57b3d3076548a689
Parents: 1cecc3f
Author: Steve Loughran <st...@apache.org>
Authored: Mon May 18 20:41:42 2015 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Mon May 18 20:41:42 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/slider/core/registry/retrieve/AMWebClient.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/13ec0af5/slider-core/src/main/java/org/apache/slider/core/registry/retrieve/AMWebClient.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/core/registry/retrieve/AMWebClient.java b/slider-core/src/main/java/org/apache/slider/core/registry/retrieve/AMWebClient.java
index dd9af16..605b46c 100644
--- a/slider-core/src/main/java/org/apache/slider/core/registry/retrieve/AMWebClient.java
+++ b/slider-core/src/main/java/org/apache/slider/core/registry/retrieve/AMWebClient.java
@@ -55,9 +55,11 @@ public class AMWebClient {
clientConfig.getFeatures().put(
JSONConfiguration.FEATURE_POJO_MAPPING,
Boolean.TRUE);
+/*
clientConfig.getProperties().put(
URLConnectionClientHandler.PROPERTY_HTTP_URL_CONNECTION_SET_METHOD_WORKAROUND,
true);
+*/
URLConnectionClientHandler handler = getUrlConnectionClientHandler();
client = new Client(handler, clientConfig);
client.setFollowRedirects(true);