camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 02/02: CAMEL-10613: Fixed CS
Date Thu, 07 Dec 2017 08:04:50 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 223112823a3f391c2e7ccaa3c670a2d149728124
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Thu Dec 7 09:03:10 2017 +0100

    CAMEL-10613: Fixed CS
---
 .../java/org/apache/camel/component/restlet/DefaultRestletBinding.java  | 2 +-
 .../java/org/apache/camel/component/restlet/RestRestletCorsTest.java    | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
index ecd8453..f85225a 100644
--- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
+++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java
@@ -430,7 +430,7 @@ public class DefaultRestletBinding implements RestletBinding, HeaderFilterStrate
                     response.setDate(d);
                 }
             } else if ("Access-Control-Max-Age".equalsIgnoreCase(key)) {
-            	Integer accessControlMaxAge = exchange.getContext().getTypeConverter().tryConvertTo(Integer.class,
exchange, value);
+                Integer accessControlMaxAge = exchange.getContext().getTypeConverter().tryConvertTo(Integer.class,
exchange, value);
                 if (accessControlMaxAge != null) {
                     response.setAccessControlMaxAge(accessControlMaxAge);
                 }
diff --git a/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestRestletCorsTest.java
b/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestRestletCorsTest.java
index 7981032..0a66c29 100644
--- a/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestRestletCorsTest.java
+++ b/components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestRestletCorsTest.java
@@ -40,7 +40,6 @@ public class RestRestletCorsTest extends RestletTestSupport {
             }
         });
 
-        System.out.println(out.getOut().getHeaders().toString());
         assertEquals("https://localhost:443", out.getOut().getHeader("Access-Control-Allow-Origin"));
         assertEquals("GET, POST, PUT, DELETE, OPTIONS", out.getOut().getHeader("Access-Control-Allow-Methods"));
         assertEquals("Origin, Accept, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers",

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <commits@camel.apache.org>.

Mime
View raw message