Merge pull request #285 from alextaylor000/patch-1

Mention 'match_discriminator' in README.md
This commit is contained in:
Gonzalo Rodriguez 2018-03-07 20:17:35 -03:00 committed by GitHub
commit c1777e0f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,7 +237,8 @@ Rack::Attack.throttled_response = lambda do |env|
# NB: you have access to the name and other data about the matched throttle
# env['rack.attack.matched'],
# env['rack.attack.match_type'],
# env['rack.attack.match_data']
# env['rack.attack.match_data'],
# env['rack.attack.match_discriminator']
# Using 503 because it may make attacker think that they have successfully
# DOSed the site. Rack::Attack returns 429 for throttling by default