Skip to content

Commit

Permalink
Allow user to specify maxFormContentSize
Browse files Browse the repository at this point in the history
  • Loading branch information
lvonk committed Nov 29, 2016
1 parent 61bba63 commit 3c109be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/scala/org/zilverline/fop/FopServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ object FopServer extends Logging {
}

def main(args: Array[String]): Unit = {
System.setProperty("org.eclipse.jetty.server.Request.maxFormContentSize", "4000000")
val maxSize = args match {
case Array(max) => max
case Array() => "4000000"
}

System.setProperty("org.eclipse.jetty.server.Request.maxFormContentSize", maxSize)

unfiltered.jetty.Http.local(DefaultPort).filter(plan).run { server =>
sys.addShutdownHook(server.stop)
Expand Down

0 comments on commit 3c109be

Please sign in to comment.