Skip to content

Commit

Permalink
test before
Browse files Browse the repository at this point in the history
  • Loading branch information
mheinzerling committed Oct 25, 2024
1 parent 2ee39d5 commit 1473d8d
Show file tree
Hide file tree
Showing 2 changed files with 399 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private void initContainerRequest(
final HttpServletResponse servletResponse,
final ResponseWriter responseWriter) throws IOException {

requestContext.setEntityStream(servletRequest.getInputStream());
setEntityStream(requestContext, servletRequest);
requestContext.setRequestScopedInitializer(requestScopedInitializer.get(new RequestContextProvider() {
@Override
public HttpServletRequest getHttpServletRequest() {
Expand All @@ -441,6 +441,10 @@ public HttpServletResponse getHttpServletResponse() {
filterFormParameters(servletRequest, requestContext);
}

static void setEntityStream(ContainerRequest requestContext, HttpServletRequest servletRequest) throws IOException {
requestContext.setEntityStream(servletRequest.getInputStream());
}

/**
* Get default {@link javax.ws.rs.core.SecurityContext} for given {@code request}.
*
Expand Down
Loading

0 comments on commit 1473d8d

Please sign in to comment.