mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Honor amount argument instead of hard coding counter (part 2)
See commit ca2e752937
This commit is contained in:
parent
196868130a
commit
d8b88cfb84
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module Rack
|
||||||
if options[:expires_in] && !read(name)
|
if options[:expires_in] && !read(name)
|
||||||
write(name, amount, options)
|
write(name, amount, options)
|
||||||
|
|
||||||
1
|
amount
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue