From 0b3c6384096aa324cfc4f2c0e40844bfa8eeb06c Mon Sep 17 00:00:00 2001 From: Jun Jiang Date: Sun, 19 Apr 2015 06:14:03 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e375090..e7a23faa 100644 --- a/README.md +++ b/README.md @@ -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