Skip to content

Commit

Permalink
fixes #1350 do not call the next handler in the chain from request bo…
Browse files Browse the repository at this point in the history
…dy and response body interceptors
  • Loading branch information
stevehu committed Aug 31, 2022
1 parent a79ff81 commit eb8741f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public void handleRequest(final HttpServerExchange exchange) throws Exception {
if(logger.isInfoEnabled()) logger.info("Failed to attached the request body to the exchange");
}
}
Handler.next(exchange, next);
// as an interceptor, we don't need to call the next handler in the chain.
// Handler.next(exchange, next);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public void handleRequest(HttpServerExchange exchange) throws Exception {
if(logger.isInfoEnabled()) logger.info("Failed to attached the response body to the exchange");
}
}
Handler.next(exchange, next);
// as an interceptor, we don't need to call the next handler in the chain.
// Handler.next(exchange, next);
}

private boolean shouldParseBody(final HttpServerExchange exchange) {
Expand Down

0 comments on commit eb8741f

Please sign in to comment.