Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed May 25, 2024
1 parent c726a25 commit 8e826b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ private MockHttpServletResponse handleMultipartRequest(

ServerRequest request = ServerRequest.create(servletRequest, MESSAGE_READERS);
ServerResponse response = handler.handleMultipartRequest(request);

if (response instanceof AsyncServerResponse asyncResponse) {
asyncResponse.block();
}
MockHttpServletResponse servletResponse = new MockHttpServletResponse();
response.writeTo(servletRequest, servletResponse, new DefaultContext());
return servletResponse;
Expand Down

0 comments on commit 8e826b9

Please sign in to comment.