From c89c0968758b3c0fe15df4109a82e94a400f523b Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Mon, 6 May 2024 18:23:42 +0200 Subject: [PATCH] add missing ! to fix #40195 --- docs/src/main/asciidoc/rest.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/rest.adoc b/docs/src/main/asciidoc/rest.adoc index 968213774a87b..7bd89519c38cd 100644 --- a/docs/src/main/asciidoc/rest.adoc +++ b/docs/src/main/asciidoc/rest.adoc @@ -2350,7 +2350,7 @@ class Filters { @ServerRequestFilter public Optional> getFilter(ContainerRequestContext ctx) { // only allow GET methods for now - if(ctx.getMethod().equals(HttpMethod.GET)) { + if(!ctx.getMethod().equals(HttpMethod.GET)) { return Optional.of(RestResponse.status(Response.Status.METHOD_NOT_ALLOWED)); } return Optional.empty();