From c4ce5dea98665936c6c21189dcf9cd25eeeadf87 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Tue, 26 Feb 2013 10:59:05 +0100 Subject: [PATCH] Fixed bug when submitting huge forms. (stock taking etc) --- config/initializers/rack.rb | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/initializers/rack.rb diff --git a/config/initializers/rack.rb b/config/initializers/rack.rb new file mode 100644 index 00000000..30970ec9 --- /dev/null +++ b/config/initializers/rack.rb @@ -0,0 +1,3 @@ +# Increase key space for post request. +# Warning, this is dangerous. See http://stackoverflow.com/questions/12243694/getting-error-exceeded-available-parameter-key-space +Rack::Utils.key_space_limit = 262144