Author: hiranya
Date: Tue Dec 1 10:10:41 2009
New Revision: 885714
URL: http://svn.apache.org/viewvc?rev=885714&view=rev
Log:
Removing the redundant check for the existence of an HTTP entity body in the
responses - Removing this seems to be mandatory because the latest
implementations of HttpResponse#getEntity method throws an
IllegalStateException in most situations.
Modified:
synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientWorker.java
Modified:
synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientWorker.java
URL:
http://svn.apache.org/viewvc/synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientWorker.java?rev=885714&r1=885713&r2=885714&view=diff
==============================================================================
---
synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientWorker.java
(original)
+++
synapse/branches/1.3/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/ClientWorker.java
Tue Dec 1 10:10:41 2009
@@ -153,7 +153,7 @@
}
try {
- if (response.getEntity() != null && in != null) {
+ if (in != null) {
Header cType = response.getFirstHeader(HTTP.CONTENT_TYPE);
String contentType;
if (cType != null) {