summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-10-13 07:04:11 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-10-13 07:04:11 +0000
commitbb3d56a12d757c67f35fdf90259996e445441f65 (patch)
tree7f2aa3864c20b32964d4978b9d7819c8cf6365c2 /sca-java-2.x/trunk
parent11264997a0d30bee198d86c08dd4ab3bf5a796ba (diff)
One more try to set the default cors
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1397797 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java
index ee781c4838..8f3e6cf792 100644
--- a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java
+++ b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java
@@ -146,12 +146,12 @@ public class RESTBindingProcessor extends BaseStAXArtifactProcessor implements S
restBinding.setReadTimeout(Integer.valueOf(readTimeout));
}
- Boolean isCORS = getBoolean(reader, CORS);
- if(isCORS != null) {
- restBinding.setCORS(isCORS);
+ String corsAttr = reader.getAttributeValue(null, CORS);
+ if(corsAttr != null) {
+ restBinding.setCORS(getBoolean(reader, CORS));
} else {
// Default to true
- restBinding.setCORS(Boolean.TRUE);
+ restBinding.setCORS(true);
}
break;