Consistent HttpMethod resolution against underlying HttpServletRequest

This commit is contained in:
Juergen Hoeller
2015-09-24 20:53:22 +02:00
parent 90409cbe98
commit 11b4e3be2c
5 changed files with 14 additions and 16 deletions

View File

@@ -106,7 +106,7 @@ public class ServletWebRequest extends ServletRequestAttributes implements Nativ
* @since 4.0.2
*/
public HttpMethod getHttpMethod() {
return HttpMethod.valueOf(getRequest().getMethod().trim().toUpperCase());
return HttpMethod.valueOf(getRequest().getMethod());
}
@Override