Browse Source

Fix Javadoc link in DefaultCorsProcessor

Closes gh-24921
pull/24923/head
Oliver Degener 5 years ago committed by GitHub
parent
commit
df291a39b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-web/src/main/java/org/springframework/web/cors/DefaultCorsProcessor.java
  2. 2
      spring-web/src/main/java/org/springframework/web/cors/reactive/DefaultCorsProcessor.java

2
spring-web/src/main/java/org/springframework/web/cors/DefaultCorsProcessor.java

@ -177,7 +177,7 @@ public class DefaultCorsProcessor implements CorsProcessor { @@ -177,7 +177,7 @@ public class DefaultCorsProcessor implements CorsProcessor {
/**
* Check the HTTP method and determine the methods for the response of a
* pre-flight request. The default implementation simply delegates to
* {@link org.springframework.web.cors.CorsConfiguration#checkOrigin(String)}.
* {@link org.springframework.web.cors.CorsConfiguration#checkHttpMethod(HttpMethod)}.
*/
@Nullable
protected List<HttpMethod> checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) {

2
spring-web/src/main/java/org/springframework/web/cors/reactive/DefaultCorsProcessor.java

@ -175,7 +175,7 @@ public class DefaultCorsProcessor implements CorsProcessor { @@ -175,7 +175,7 @@ public class DefaultCorsProcessor implements CorsProcessor {
/**
* Check the HTTP method and determine the methods for the response of a
* pre-flight request. The default implementation simply delegates to
* {@link CorsConfiguration#checkOrigin(String)}.
* {@link CorsConfiguration#checkHttpMethod(HttpMethod)}.
*/
@Nullable
protected List<HttpMethod> checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) {

Loading…
Cancel
Save