Permalink
Browse files

Support PATCH requests in HttpPostRequestDecoder.

  • Loading branch information...
1 parent b64e6e1 commit a393ce5d3d3e11b571e7105e479d16951840c831 @rossabaker rossabaker committed Mar 10, 2012
View
2 src/main/java/org/jboss/netty/handler/codec/http2/HttpPostRequestDecoder.java
@@ -171,7 +171,7 @@ public HttpPostRequestDecoder(HttpDataFactory factory, HttpRequest request,
}
this.request = request;
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;
}
this.charset = charset;

0 comments on commit a393ce5

Please sign in to comment.