Skip to content

Commit

Permalink
add missing ! to fix quarkusio#40195
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen authored and holly-cummins committed Jul 31, 2024
1 parent e3f514e commit 3b4b6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/rest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ class Filters {
@ServerRequestFilter
public Optional<RestResponse<Void>> 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();
Expand Down

0 comments on commit 3b4b6d1

Please sign in to comment.