From c372b0734483329b76d429699391600f76f0b51d Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Thu, 17 Sep 2015 15:26:30 +0200 Subject: [PATCH] only enable request throttling in production --- lib/travis/api/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 7fa44e56..a2763fdd 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -125,7 +125,7 @@ module Travis::Api use Travis::Api::App::Middleware::Metriks # make sure this is below ScopeCheck so we have the token - use Rack::Attack + use Rack::Attack if Endpoint.production? # if this is a v3 API request, ignore everything after use Travis::API::V3::OptIn