Commit in servicemix/base/src/main/java/org/servicemix/components/http on MAIN
HttpMarshaler.java+4-21.5 -> 1.6
Fix problem on HttpMarshaler that did copy http invalid http headers

servicemix/base/src/main/java/org/servicemix/components/http
HttpMarshaler.java 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- HttpMarshaler.java	22 Sep 2005 11:06:33 -0000	1.5
+++ HttpMarshaler.java	23 Sep 2005 13:20:59 -0000	1.6
@@ -37,7 +37,7 @@
 /**
  * A class which marshalls a HTTP request to a NMS message
  * 
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
  */
 public class HttpMarshaler extends MarshalerSupport {
 
@@ -101,7 +101,9 @@
      * message. By default this includes all suitable typed values
      */
     protected boolean shouldIncludeHeader(NormalizedMessage normalizedMessage, String name, Object value) {
-        return value instanceof String;
+        return value instanceof String && 
+        		!"Content-Length".equals(name) &&
+        		!"Content-Type".equals(name);
     }
 
 }
CVSspam 0.2.8



Reply via email to