activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1492632 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
Date Thu, 13 Jun 2013 11:55:15 GMT
Author: chirino
Date: Thu Jun 13 11:55:15 2013
New Revision: 1492632

URL: http://svn.apache.org/r1492632
Log:
Fixes: APLO-328 cors_origin configuration attribute of the the web connectors not properly
setting the Access-Control-Allow-Headers

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala?rev=1492632&r1=1492631&r2=1492632&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
Thu Jun 13 11:55:15 2013
@@ -39,7 +39,7 @@ class AllowAnyOriginFilter(val allowed:S
           if ( req.getMethod == "OPTIONS" ) {
             response.addHeader("Access-Control-Request-Method", "GET, POST, PUT, DELETE");
             req.getHeader("Access-Control-Request-Headers") match {
-              case headers:String=> response.addHeader("Access-Control-Allow-Header",
headers);
+              case headers:String=> response.addHeader("Access-Control-Allow-Headers",
headers);
               case _ =>
             }
             response.addHeader("Access-Control-Max-Age", ""+DAYS.toSeconds(1));
@@ -51,7 +51,7 @@ class AllowAnyOriginFilter(val allowed:S
               if ( req.getMethod == "OPTIONS" ) {
                 response.addHeader("Access-Control-Request-Method", "GET, POST, PUT, DELETE");
                 req.getHeader("Access-Control-Request-Headers") match {
-                  case headers:String=> response.addHeader("Access-Control-Allow-Header",
headers);
+                  case headers:String=> response.addHeader("Access-Control-Allow-Headers",
headers);
                   case _ =>
                 }
                 response.addHeader("Access-Control-Max-Age", ""+DAYS.toSeconds(1));



Mime
View raw message