Skip to content

Commit

Permalink
play.module.netty.maxContentLength
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Mar 1, 2010
1 parent 913adb1 commit 63b6c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/manual/home.textile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ h2. <a>Configuration</a>

By default, there is no maximum upload size. But the max upload size can be configured. In your application.conf add the following line:

bc. module.netty.maxContentLength=1048576
bc. play.module.netty.maxContentLength=1048576

A value of -1 means that there is no maximum upload size.

Expand Down
2 changes: 1 addition & 1 deletion src/play/modules/netty/HttpServerPipelineFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class HttpServerPipelineFactory implements ChannelPipelineFactory {

public ChannelPipeline getPipeline() throws Exception {

Integer max = Integer.valueOf(Play.configuration.getProperty("module.netty.maxContentLength", "-1"));
Integer max = Integer.valueOf(Play.configuration.getProperty("play.module.netty.maxContentLength", "-1"));
if (max == -1) {
max = Integer.MAX_VALUE;
}
Expand Down

0 comments on commit 63b6c5e

Please sign in to comment.