You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/07/11 14:57:06 UTC

[4/7] camel git commit: CAMEL-6469: http component now have header with response status line text as well (the code is already there)

CAMEL-6469: http component now have header with response status line text as well (the code is already there)


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/99380c69
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/99380c69
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/99380c69

Branch: refs/heads/master
Commit: 99380c69ff00505b03195ba0f40faa522354b4c2
Parents: 754491d
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Jul 11 12:46:53 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Jul 11 12:46:53 2015 +0200

----------------------------------------------------------------------
 .../apache/camel/component/jetty/HttpFilterCamelHeadersTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/99380c69/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java
index 9deded9..67c7d50 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HttpFilterCamelHeadersTest.java
@@ -45,7 +45,8 @@ public class HttpFilterCamelHeadersTest extends BaseJettyTest {
         // except for the response code
         Map<String, Object> headers = out.getOut().getHeaders();
         for (String key : headers.keySet()) {
-            if (!key.equalsIgnoreCase(Exchange.HTTP_RESPONSE_CODE)) {
+            boolean valid = key.equalsIgnoreCase(Exchange.HTTP_RESPONSE_CODE) || key.equalsIgnoreCase(Exchange.HTTP_RESPONSE_TEXT);
+            if (!valid) {
                 assertTrue("Should not contain any Camel internal headers", !key.toLowerCase().startsWith("camel"));
             } else {
                 assertEquals(200, headers.get(Exchange.HTTP_RESPONSE_CODE));