Merge commit 'e95e896f10
' into kb_migration_development
This commit is contained in:
commit
5759c6628f
14 changed files with 142 additions and 151 deletions
|
@ -145,7 +145,7 @@ class Rack::Attack
|
|||
'Content-Type' => 'application/json',
|
||||
'X-RateLimit-Limit' => match_data[:limit].to_s,
|
||||
'X-RateLimit-Remaining' => '0',
|
||||
'X-RateLimit-Reset' => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6),
|
||||
'X-RateLimit-Reset' => (now + (match_data[:period] - (now.to_i % match_data[:period]))).iso8601(6),
|
||||
}
|
||||
|
||||
[429, headers, [{ error: I18n.t('errors.429') }.to_json]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue