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();