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 committed May 6, 2024
1 parent 0eb9621 commit c89c096
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 c89c096

Please sign in to comment.