Skip to content

Commit

Permalink
Revert "Clear ProducesRequestCondition cache attribute"
Browse files Browse the repository at this point in the history
Closes gh-20292
  • Loading branch information
bclozel committed Feb 21, 2020
1 parent 3f0a5a5 commit 11b9862
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,6 @@ protected CorsConfiguration initCorsConfiguration(Object handler, Method method,
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ protected CorsConfiguration initCorsConfiguration(Object handler, Method method,
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;
Expand Down

0 comments on commit 11b9862

Please sign in to comment.