Revert "Clear ProducesRequestCondition cache attribute"
Closes gh-20292
This commit is contained in:
parent
3f0a5a5482
commit
11b9862064
|
|
@ -198,12 +198,6 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
|
|||
return this.corsConfiguration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Mono<HandlerMethod> getHandlerInternal(ServerWebExchange exchange) {
|
||||
return super.getHandlerInternal(exchange)
|
||||
.doOnTerminate(() -> ProducesRequestCondition.clearMediaTypesAttribute(exchange));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isHandler(Class<?> beanType) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -231,16 +231,6 @@ public abstract class AbstractWebMvcEndpointHandlerMapping extends RequestMappin
|
|||
return this.corsConfiguration;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected HandlerMethod getHandlerInternal(HttpServletRequest request) throws Exception {
|
||||
try {
|
||||
return super.getHandlerInternal(request);
|
||||
}
|
||||
finally {
|
||||
ProducesRequestCondition.clearMediaTypesAttribute(request);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isHandler(Class<?> beanType) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue