Nancy maximum JSON length exception when Binding

Viewed 2375

I have simple Nancy self hosting C# project which deserializes data in NancyModule like this:

Post["/build"] = (something) => { var data = this.Bind<Brick>(); }

I am getting "Maximum JSON input length has been exceeded." when Request.Body.Length is close to 2MB. I would like to send tens of megabytes of data in the future and 2MB is just too low. Can I remove this limit?

2 Answers
Related