Revert "Clear ProducesRequestCondition cache attribute"

Closes gh-20292
This commit is contained in:
Brian Clozel 2020-02-21 17:38:43 +01:00
parent 3f0a5a5482
commit 11b9862064
2 changed files with 0 additions and 16 deletions

View File

@ -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;

View File

@ -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;