hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r617581 - /httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java
Date Fri, 01 Feb 2008 18:01:11 GMT
Author: rolandw
Date: Fri Feb  1 10:01:01 2008
New Revision: 617581

URL: http://svn.apache.org/viewvc?rev=617581&view=rev
Log:
HTTPCLIENT-737 fixed

Modified:
    httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java

Modified: httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java?rev=617581&r1=617580&r2=617581&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/EchoHandler.java
Fri Feb  1 10:01:01 2008
@@ -101,7 +101,9 @@
         }
 
         ByteArrayEntity bae = new ByteArrayEntity(data);
-        bae.setContentType(entity.getContentType());
+        if (entity != null) {
+            bae.setContentType(entity.getContentType());
+        }
         entity = bae;
 
         response.setStatusCode(HttpStatus.SC_OK);



Mime
View raw message