Merge pull request #288 from travis-ci/backport-287

[Backport] Don't run Rack::Attack for Enterprise.
This commit is contained in:
Brandon Ferguson 2016-07-05 09:48:21 +02:00 committed by GitHub
commit 73c2691959

View File

@ -129,7 +129,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