Skip to content

Commit

Permalink
change deprecated rack attack method
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAvlonitis committed Sep 15, 2024
1 parent afd9c2a commit 7156038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/rack-attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Rack::Attack
# If you want to return 503 so that the attacker might be fooled into
# believing that they've successfully broken your app (or you just want to
# customize the response), then uncomment these lines.
self.throttled_response = lambda do |env|
self.throttled_responder = lambda do |env|
[
503, # status
{}, # headers
Expand Down

0 comments on commit 7156038

Please sign in to comment.