lib/pah/files/config/initializers/rack_timeout.rb in pah-0.0.14 vs lib/pah/files/config/initializers/rack_timeout.rb in pah-0.0.15
- old
+ new
@@ -1,2 +1,4 @@
-Rack::Timeout.timeout = Integer(ENV['RACK_TIMEOUT'] || 10) # seconds
+if defined? Rack::Timeout
+ Rack::Timeout.timeout = Integer(ENV['RACK_TIMEOUT'] || 10) # seconds
+end