Author: ningjiang
Date: Thu Sep 10 08:48:39 2009
New Revision: 813310

URL: http://svn.apache.org/viewvc?rev=813310&view=rev
Log:
Added the generic headers to the out filter in HttpHeaderStrategy.

Modified:
    
camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java

Modified: 
camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java?rev=813310&r1=813309&r2=813310&view=diff
==============================================================================
--- 
camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java
 (original)
+++ 
camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java
 Thu Sep 10 08:48:39 2009
@@ -31,7 +31,17 @@
     protected void initialize() {
         getOutFilter().add("content-length");
         getOutFilter().add("content-type");
-        getOutFilter().add("transfer-encoding");
+        // Add the filter for the Generic Message header
+        // http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5
+        getOutFilter().add("Cache-Control");
+        getOutFilter().add("Connection");
+        getOutFilter().add("Pragma");
+        getOutFilter().add("Trailer");
+        getOutFilter().add("Transfer-Encoding");
+        getOutFilter().add("Upgrade");
+        getOutFilter().add("Via");
+        getOutFilter().add("Warning");
+        
         setLowerCase(true);
         
         // filter headers begin with "Camel" or "org.apache.camel"


Reply via email to