tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r1351907 - /tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java
Date Wed, 20 Jun 2012 00:31:34 GMT
Author: lresende
Date: Wed Jun 20 00:31:34 2012
New Revision: 1351907

URL: http://svn.apache.org/viewvc?rev=1351907&view=rev
Log:
Cleaning commented out code

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java?rev=1351907&r1=1351906&r2=1351907&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java
Wed Jun 20 00:31:34 2012
@@ -82,16 +82,6 @@ public class TuscanyRESTServlet extends 
     protected void service(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
         
         if (binding.isCORS()) {
-            /*
-            response.setHeader("Access-Control-Allow-Origin", "*");
-            response.setHeader("Access-Control-Allow-Headers", "X-Requested-With");
-            if (request.getMethod().equals("OPTIONS")) {
-                response.setHeader("Access-Control-Allow-Methods", "DELETE, GET, OPTIONS,
POST, PUT");
-                response.setHeader("Access-Control-Max-Age", "1728000");
-                return;
-            }
-            */
-            
             CORSHeaderProcessor.processCORS(binding.getCORSConfiguration(), request, response);
         }
 



Mime
View raw message