Skip to content

Update OncePerRequestFilter.isAsyncDispatch to use HttpServletRequest.getDispatcherType() #26282

@rwinch

Description

@rwinch

To ensure that the OncePerRequestFilter works when the servlet API is used directly it would be nice to update OncePerRequestFilter.isAsyncDispatch to use HttpServletRequest.getDispatcherType()

@Override
protected boolean isAsyncDispatch(HttpServletRequest request) {
    return request.getDispatcherType() == DispatcherType.ASYNC;
}

See spring-projects/spring-security#4211

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions