mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 08:19:01 +00:00
DispatcherServlet and ServletWrapping/ForwardingController accept any HTTP method by default
Issue: SPR-4799
This commit is contained in:
@@ -61,7 +61,7 @@ public enum HttpMethod {
|
||||
* @since 4.2.4
|
||||
*/
|
||||
public boolean matches(String method) {
|
||||
return name().equals(method);
|
||||
return (this == resolve(method));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user