You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestMethodsRequestCondition.java
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
importjava.util.LinkedHashSet;
23
23
importjava.util.List;
24
24
importjava.util.Set;
25
+
importjavax.servlet.DispatcherType;
25
26
importjavax.servlet.http.HttpServletRequest;
26
27
27
28
importorg.springframework.http.HttpHeaders;
@@ -109,7 +110,9 @@ public RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest re
109
110
}
110
111
111
112
if (getMethods().isEmpty()) {
112
-
if (RequestMethod.OPTIONS.name().equals(request.getMethod())) {
113
+
if (RequestMethod.OPTIONS.name().equals(request.getMethod()) &&
Copy file name to clipboardExpand all lines: spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/RequestMethodsRequestConditionTests.java
0 commit comments