mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 08:19:01 +00:00
Use HttpMethod::valueOf in HttpMethod::resolve
This commit makes sure that HttpMethod::resolve uses HttpMethod::valueOf and returns an HttpMethod for non-standard methods. See gh-27697
This commit is contained in:
@@ -146,7 +146,7 @@ public final class HttpMethod implements Comparable<HttpMethod>, Serializable {
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public static HttpMethod resolve(@Nullable String method) {
|
||||
return (method != null ? mappings.get(method) : null);
|
||||
return (method != null ? valueOf(method) : null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user