From 6d71044c854c453f499f97af420fe0ed762238d3 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 8b7311e39..1e6315b2b 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?