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