Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typo

  • Loading branch information...
commit 58ef831c3316ccbd70a95a992fe6b29ded4e2acb 1 parent efbf0e2
@pepite pepite authored
View
4 src/play/modules/netty/HttpServerPipelineFactory.java
@@ -14,8 +14,8 @@
public ChannelPipeline getPipeline() throws Exception {
- Integer max = Integer.valueOf(Play.configuration.getProperty("play.module.netty.maxContentLength", "-1"));
- Integer threshold = Integer.valueOf(Play.configuration.getProperty("play.module.netty.threshold", "8192"));
+ Integer max = Integer.valueOf(Play.configuration.getProperty("play.netty.maxContentLength", "-1"));
+ Integer threshold = Integer.valueOf(Play.configuration.getProperty("play.netty.threshold", "8192"));
ChannelPipeline pipeline = pipeline();
View
1  src/play/modules/netty/PlayHandler.java
@@ -343,6 +343,7 @@ public static Request parseRequest(ChannelHandlerContext ctx, HttpRequest nettyR
Integer max = Integer.valueOf(Play.configuration.getProperty("play.module.netty.maxContentLength", "-1"));
if (max == -1 || buffer.getInputStream().available() < max) {
request.body = buffer.getInputStream();
+ } else {
request.body = new ByteArrayInputStream(new byte[0]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.