diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 1e1ec814..d61a498b 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -132,7 +132,7 @@ module Travis::Api use Travis::Api::App::Middleware::UserAgentTracker # make sure this is below ScopeCheck so we have the token - use Rack::Attack if Endpoint.production? + use Rack::Attack if Endpoint.production? and not Travis.config.enterprise # if this is a v3 API request, ignore everything after use Travis::API::V3::OptIn