mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Update application/controllers/Api.php
Co-authored-by: Florian (DF2ET) <github@florian-wolters.de>
This commit is contained in:
@@ -42,7 +42,7 @@ class API extends CI_Controller {
|
||||
$result = $this->rate_limit->check($endpoint, $identifier);
|
||||
|
||||
if (!$result['allowed']) {
|
||||
log_message("Debug","Rate limit for ".$endpoint." and ID:".($identifier ?? '')." exceeded");
|
||||
log_message("Debug","Rate limit for endpoint ".$endpoint." and ID: ".($identifier ?? '')." exceeded");
|
||||
$this->rate_limit->send_limit_exceeded_response($result['retry_after']);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user