Update README.md

This commit is contained in:
Jun Jiang 2015-04-19 06:14:03 +08:00
parent 3e0fcc24a4
commit 0b3c638409

View file

@ -199,7 +199,7 @@ Rack::Attack.track("special_agent") do |req|
end
# Supports optional limit and period, triggers the notification only when the limit is reached.
Rack::Attack.track("special_agent", :limit 6, :period => 60.seconds) do |req|
Rack::Attack.track("special_agent", :limit => 6, :period => 60.seconds) do |req|
req.user_agent == "SpecialAgent"
end