From 7855a9b58b5bfb30881e485387a0809f118cd759 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 21 Dec 2016 19:10:40 +0100 Subject: [PATCH] Don't use rack timeout in any but production environments --- config/initializers/timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/timeout.rb b/config/initializers/timeout.rb index 8b7311e39b..1e6315b2bb 100644 --- a/config/initializers/timeout.rb +++ b/config/initializers/timeout.rb @@ -1 +1 @@ -Rack::Timeout.timeout = 30 \ No newline at end of file +Rack::Timeout.timeout = 30 if Rails.env.production?