Skip to content

Commit

Permalink
Merge pull request rack#124 from jasl/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ktheory committed Apr 19, 2015
2 parents 3e0fcc2 + 0b3c638 commit e25ab0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e25ab0a

Please sign in to comment.