tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r1294281 - /tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java
Date Mon, 27 Feb 2012 19:08:41 GMT
Author: lresende
Date: Mon Feb 27 19:08:40 2012
New Revision: 1294281

URL: http://svn.apache.org/viewvc?rev=1294281&view=rev
Log:
Properly placing the exit when configuration is not available and default is in use

Modified:
    tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java

Modified: tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java?rev=1294281&r1=1294280&r2=1294281&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java
Mon Feb 27 19:08:40 2012
@@ -34,8 +34,8 @@ public class CORSHeaderProcessor {
             if (request.getMethod().equals("OPTIONS")) {
                 response.setHeader("Access-Control-Allow-Methods", "OPTIONS, HEAD, GET, POST,
PUT, DELETE");
                 response.setHeader("Access-Control-Max-Age", "1728000");
-                return;
             }
+            return;
         }
         
         if(config.allowCredentials) {



Mime
View raw message