We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1155c26 commit 77195a5Copy full SHA for 77195a5
README.md
@@ -356,9 +356,9 @@ Rack::Attack.throttled_responder = lambda do |request|
356
now = match_data[:epoch_time]
357
358
headers = {
359
- 'RateLimit-Limit' => match_data[:limit].to_s,
360
- 'RateLimit-Remaining' => '0',
361
- 'RateLimit-Reset' => (now + (match_data[:period] - now % match_data[:period])).to_s
+ 'ratelimit-limit' => match_data[:limit].to_s,
+ 'ratelimit-remaining' => '0',
+ 'ratelimit-reset' => (now + (match_data[:period] - now % match_data[:period])).to_s
362
}
363
364
[ 429, headers, ["Throttled\n"]]
0 commit comments