Skip to content

Commit

Permalink
fixes networknt#1350 do not call the next handler in the chain from r…
Browse files Browse the repository at this point in the history
…equest body and response body interceptors (networknt#1351)
  • Loading branch information
stevehu committed Aug 31, 2022
1 parent 7370e96 commit 624dd90
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 624dd90

Please sign in to comment.