From 231736ae6d4448ed6ca4096fcc95ce858dce8f8a Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Thu, 7 Dec 2023 10:44:40 +0100 Subject: [PATCH] Increate key space limit to 10MiB --- config/initializers/rack_initializer.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 config/initializers/rack_initializer.rb diff --git a/config/initializers/rack_initializer.rb b/config/initializers/rack_initializer.rb new file mode 100644 index 0000000..5fc4d45 --- /dev/null +++ b/config/initializers/rack_initializer.rb @@ -0,0 +1,4 @@ +if Rack::Utils.respond_to?("key_space_limit=") + # Increase limit to 10 MiB + Rack::Utils.key_space_limit = 10485760 +end