Skip to content

Commit

Permalink
Fix POST
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Oct 3, 2024
1 parent 5825089 commit 18fb634
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})

Check warning on line 109 in src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/security/dlic/rest/api/FlushCacheApiAction.java#L108-L109

Added lines #L108 - L109 were not covered by tests
.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.");
Expand Down

0 comments on commit 18fb634

Please sign in to comment.