Skip to content

Commit

Permalink
Update ControllerMethodWriter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Sep 12, 2023
1 parent d56f9e3 commit b60cac9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ void writeHandler(boolean requestScoped) {
writer.append(" private void _%s(FilterChain chain, RoutingRequest req, RoutingResponse res) {", method.simpleName()).eol();
} else {
writer.append(" private void _%s(ServerRequest req, ServerResponse res) throws Exception {", method.simpleName()).eol();
}

if (!isFilter) {
int statusCode = method.statusCode();
if (statusCode > 0) {
writer.append(" res.status(%s);", lookupStatusCode(statusCode)).eol();
Expand Down

0 comments on commit b60cac9

Please sign in to comment.