From 18fb63424931ea43d1f050f7327009e3ca578054 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Thu, 3 Oct 2024 16:29:54 -0400 Subject: [PATCH] Fix POST Signed-off-by: Derek Ho --- .../opensearch/security/dlic/rest/api/FlushCacheApiAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java b/src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java index a611ebdcf9..1ae723ff28 100644 --- a/src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java +++ b/src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java @@ -105,7 +105,7 @@ public void onFailure(final Exception e) { "POST", "POST is not supported on this endpoint and will be removed in the next major release." ); - methodNotImplemented(channel, Method.GET); + methodNotImplemented(channel, Method.POST); }) .override(Method.PUT, (channel, request, client) -> { deprecationLogger.deprecate("PUT", "PUT is not supported on this endpoint and will be removed in the next major release.");