camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r908736 - in /camel/trunk/components/camel-http/src: main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.java
Date Wed, 10 Feb 2010 23:11:08 GMT
Author: ningjiang
Date: Wed Feb 10 23:11:02 2010
New Revision: 908736

URL: http://svn.apache.org/viewvc?rev=908736&view=rev
Log:
CAMEL-2458 applied patch with thanks to Christian

Modified:
    camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpHeaderFilterStrategy.java
    camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.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=908736&r1=908735&r2=908736&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
Wed Feb 10 23:11:02 2010
@@ -34,6 +34,7 @@
         // http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5
         getOutFilter().add("cache-control");
         getOutFilter().add("connection");
+        getOutFilter().add("date");
         getOutFilter().add("pragma");
         getOutFilter().add("trailer");
         getOutFilter().add("transfer-encoding");

Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.java?rev=908736&r1=908735&r2=908736&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.java
(original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/HttpHeaderFilterStrategyTest.java
Wed Feb 10 23:11:02 2010
@@ -47,6 +47,8 @@
         assertFalse(filter.applyFilterToExternalHeaders("Cache-Control", "no-cache", exchange));
         assertFalse(filter.applyFilterToExternalHeaders("connection", "close", exchange));
         assertFalse(filter.applyFilterToExternalHeaders("Connection", "close", exchange));
+        assertFalse(filter.applyFilterToExternalHeaders("date", "close", exchange));
+        assertFalse(filter.applyFilterToExternalHeaders("Data", "close", exchange));
         assertFalse(filter.applyFilterToExternalHeaders("pragma", "no-cache", exchange));
         assertFalse(filter.applyFilterToExternalHeaders("Pragma", "no-cache", exchange));
         assertFalse(filter.applyFilterToExternalHeaders("trailer", "Max-Forwards", exchange));
@@ -76,6 +78,8 @@
         assertTrue(filter.applyFilterToCamelHeaders("Cache-Control", "no-cache", exchange));
         assertTrue(filter.applyFilterToCamelHeaders("connection", "close", exchange));
         assertTrue(filter.applyFilterToCamelHeaders("Connection", "close", exchange));
+        assertTrue(filter.applyFilterToCamelHeaders("date", "close", exchange));
+        assertTrue(filter.applyFilterToCamelHeaders("Date", "close", exchange));
         assertTrue(filter.applyFilterToCamelHeaders("pragma", "no-cache", exchange));
         assertTrue(filter.applyFilterToCamelHeaders("Pragma", "no-cache", exchange));
         assertTrue(filter.applyFilterToCamelHeaders("trailer", "Max-Forwards", exchange));



Mime
View raw message