Disable PROP_HTTP_ACCEPT_GZIP property for HTTP External Services.
HttpClient does not support compression natively. Additional code would be necessary to handle it.
git-svn-id: https://svn.apache.org/repos/asf/ode/branches/APACHE_ODE_1.1@675808 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/axis2/src/main/java/org/apache/ode/axis2/Properties.java b/axis2/src/main/java/org/apache/ode/axis2/Properties.java
index e216cc6..40572cc 100644
--- a/axis2/src/main/java/org/apache/ode/axis2/Properties.java
+++ b/axis2/src/main/java/org/apache/ode/axis2/Properties.java
@@ -215,12 +215,15 @@
p.setBooleanParameter(PROP_HTTP_REQUEST_CHUNK, Boolean.parseBoolean(properties.get(PROP_HTTP_REQUEST_CHUNK)));
}
if (properties.containsKey(PROP_HTTP_REQUEST_GZIP)) {
- if (log.isWarnEnabled()) log.warn("Property Not Supported: " + PROP_HTTP_REQUEST_GZIP);
+ if (log.isWarnEnabled()) log.warn("Property not supported by HTTP External Services: " + PROP_HTTP_REQUEST_GZIP);
}
if (Boolean.parseBoolean(properties.get(PROP_HTTP_ACCEPT_GZIP))) {
// append gzip to the list of accepted encoding
- ((Collection) p.getParameter(HostParams.DEFAULT_HEADERS)).add(new Header("Accept-Encoding", "gzip"));
+ // HttpClient does not support compression natively
+ // Additional code would be necessary to handle it.
+// ((Collection) p.getParameter(HostParams.DEFAULT_HEADERS)).add(new Header("Accept-Encoding", "gzip"));
+ if (log.isWarnEnabled()) log.warn("Property not supported by HTTP External Services: " + PROP_HTTP_ACCEPT_GZIP);
}
if (properties.containsKey(PROP_HTTP_MAX_REDIRECTS)) {