Correctly handle HTTP Patch. See #227

This commit is contained in:
Norman Maurer 2012-03-11 11:54:54 +01:00
parent c061ddbf14
commit cb931bfb92

View File

@ -163,7 +163,7 @@ public class HttpPostRequestDecoder {
} }
this.request = request; this.request = request;
HttpMethod method = request.getMethod(); HttpMethod method = request.getMethod();
if (method.equals(HttpMethod.POST) || method.equals(HttpMethod.PUT)) { if (method.equals(HttpMethod.POST) || method.equals(HttpMethod.PUT) || method.equals(HttpMethod.PATCH)) {
bodyToDecode = true; bodyToDecode = true;
} }
this.charset = charset; this.charset = charset;