Skip to content

Commit

Permalink
Only check filter body buffering if message content still inflight (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbunney authored and argha-c committed Sep 9, 2024
1 parent 7867f65 commit 6e34420
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ protected final boolean shouldSkipFilter(final I inMesg, final ZuulFilter<I, O>
return false;
}

private boolean isMessageBodyReadyForFilter(final ZuulFilter filter, final I inMesg) {
return ((!filter.needsBodyBuffered(inMesg)) || (inMesg.hasCompleteBody()));
private boolean isMessageBodyReadyForFilter(final ZuulFilter<I, O> filter, final I inMesg) {
return inMesg.hasCompleteBody() || (!filter.needsBodyBuffered(inMesg));
}

protected O handleFilterException(final I inMesg, final ZuulFilter<I, O> filter, final Throwable ex) {
Expand Down

0 comments on commit 6e34420

Please sign in to comment.