1
0
Fork 0
forked from gitea/nas

Merge commit 'e95e896f10' into kb_migration_development

This commit is contained in:
KMY 2023-05-16 17:52:40 +09:00
commit 5759c6628f
14 changed files with 142 additions and 151 deletions

View file

@ -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]]