Skip to content

Commit

Permalink
Set isBlocking true if the input type uses a handler that blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanMollet committed Oct 2, 2018
1 parent 52702bd commit aadae7b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ else if (t.equals(HttpServerExchange.class) || t.equals(ServerRequest.class))

endpointInfo.setConsumes(consumesContentType);

//The handler for these two inputs types is blocking, so we set the flag
if (endpointInfo.getConsumes().equals("application/x-www-form-urlencoded")
|| endpointInfo.getConsumes().equals("multipart/form-data")) {
isBlocking = true;
}

endpointInfo.setPathTemplate(methodPath);

endpointInfo.setControllerMethod(m.getName());
Expand Down

0 comments on commit aadae7b

Please sign in to comment.