Merge pull request #223 from marcgg/patch-1

Typo in comment
This commit is contained in:
Aaron Suggs 2017-04-03 16:26:05 -04:00 committed by GitHub
commit 26124874e2

View file

@ -7,7 +7,7 @@ module Rack
'allow2ban'
end
# everything the same here except we return only return true
# everything is the same here except we only return true
# (blocking the request) if they have tripped the limit.
def fail!(discriminator, bantime, findtime, maxretry)
count = cache.count("#{key_prefix}:count:#{discriminator}", findtime)