[qpid-broker-j] 02/02: QPID-8555: [Broker-J] Allow method OPTIONS in HTTP management attribute for setting CORS allowed methods

2021-07-25 Thread orudyy
This is an automated email from the ASF dual-hosted git repository.

orudyy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git

commit dc5bba197bc7327698b28500d6d1bfd546ced1df
Author: Alex Rudyy 
AuthorDate: Sun Jul 25 17:06:14 2021 +0100

QPID-8555: [Broker-J] Allow method OPTIONS in HTTP management attribute for 
setting CORS allowed methods
---
 .../java/org/apache/qpid/server/management/plugin/HttpManagement.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
 
b/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
index dcc58f1..080b7bd 100644
--- 
a/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
+++ 
b/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
@@ -884,7 +884,7 @@ public class HttpManagement extends 
AbstractPluginAdapter implem
 @SuppressWarnings("unused")
 public static Set getAllAvailableCorsMethodCombinations()
 {
-List methods = Arrays.asList("OPTION", "HEAD", "GET", "POST", 
"PUT", "DELETE");
+List methods = Arrays.asList("OPTIONS", "HEAD", "GET", "POST", 
"PUT", "DELETE");
 Set> combinations = new HashSet<>();
 int n = methods.size();
 assert n < 31 : "Too many combination to calculate";

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org



[qpid-broker-j] 02/02: QPID-8555: [Broker-J] Allow method OPTIONS in HTTP management attribute for setting CORS allowed methods

2021-07-25 Thread orudyy
This is an automated email from the ASF dual-hosted git repository.

orudyy pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git

commit 3180b7ca1644abbd03f949f108d7b2001ef111b0
Author: Alex Rudyy 
AuthorDate: Sun Jul 25 17:06:14 2021 +0100

QPID-8555: [Broker-J] Allow method OPTIONS in HTTP management attribute for 
setting CORS allowed methods
---
 .../java/org/apache/qpid/server/management/plugin/HttpManagement.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
 
b/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
index 0703a1f..f87fe88 100644
--- 
a/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
+++ 
b/broker-plugins/management-http/src/main/java/org/apache/qpid/server/management/plugin/HttpManagement.java
@@ -884,7 +884,7 @@ public class HttpManagement extends 
AbstractPluginAdapter implem
 @SuppressWarnings("unused")
 public static Set getAllAvailableCorsMethodCombinations()
 {
-List methods = Arrays.asList("OPTION", "HEAD", "GET", "POST", 
"PUT", "DELETE");
+List methods = Arrays.asList("OPTIONS", "HEAD", "GET", "POST", 
"PUT", "DELETE");
 Set> combinations = new HashSet<>();
 int n = methods.size();
 assert n < 31 : "Too many combination to calculate";

-
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org