0

In post method handler of ratpack the following is not executed after certain length of xml. Tried changing the content length but it did not work.Any help would be greatly appreciated. Thank you.

  ctx.request.getBody().then{ body->
                println body.text
            }
xxx
  • 11
  • 4

1 Answers1

0

I believe the default max content length is 1mb. You can change the maxContentLength though:

serverConfig {
    maxContentLength(someVal)
}
Glen
  • 682
  • 8
  • 17
  • Thank you for the answer.But in my case the size was lesser than 1MB. The issue was I had a render startement at the end of the function so it was rendering before the execution of the above code after certain content length.Its working perfectly after removing the render statement at the end. – xxx Feb 25 '17 at 13:48
  • Ah ok, I mistook you when you said you set the content length as setting the header. Glad you got it sorted out. – Glen Feb 27 '17 at 19:09