Author: keithc
Date: Tue Sep 30 10:30:03 2008
New Revision: 700533
URL: http://svn.apache.org/viewvc?rev=700533&view=rev
Log:
Axis2 client was complining when a response contained identity as the
content-encoding. It should not complain rather just ignore it.
Modified:
webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Modified:
webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/AbstractHTTPSender.java?rev=700533&r1=700532&r2=700533&view=diff
==============================================================================
---
webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
(original)
+++
webservices/commons/trunk/modules/transport/modules/http/src/org/apache/axis2/transport/http/AbstractHTTPSender.java
Tue Sep 30 10:30:03 2008
@@ -220,7 +220,8 @@
if (contentEncoding.getValue().
equalsIgnoreCase(HTTPConstants.COMPRESSION_GZIP)) {
in = new GZIPInputStream(in);
- } else {
+ // If the content-encoding is identity we can basically ignore
it.
+ } else if
(!"identity".equalsIgnoreCase(contentEncoding.getValue())) {
throw new AxisFault("HTTP :" + "unsupported content-encoding
of '"
+ contentEncoding.getValue() + "' found");
}