You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2021/07/25 16:07:25 UTC
[qpid-broker-j] 02/02: QPID-8555: [Broker-J] Allow method OPTIONS
in HTTP management attribute for setting CORS allowed methods
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 <or...@apache.org>
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<HttpManagement> implem
@SuppressWarnings("unused")
public static Set<String> getAllAvailableCorsMethodCombinations()
{
- List<String> methods = Arrays.asList("OPTION", "HEAD", "GET", "POST", "PUT", "DELETE");
+ List<String> methods = Arrays.asList("OPTIONS", "HEAD", "GET", "POST", "PUT", "DELETE");
Set<Set<String>> combinations = new HashSet<>();
int n = methods.size();
assert n < 31 : "Too many combination to calculate";
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org