From bbe7ac16a67cfdaf9e377be4470accbdc85bb020 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 25 May 2018 11:05:24 +0200 Subject: [PATCH] [UPDATE] Send proper header when ajax calls are rate-limited --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index f74dd4cd..e600f274 100644 --- a/public/index.php +++ b/public/index.php @@ -71,7 +71,7 @@ if ($config['memcache']['enabled'] && $config['mc_antidos']['enabled']) { if (!$skip_check) { $mcad = new MemcacheAntiDos($config, $memcache, $per_page); if ($config['mc_antidos']['protect_ajax'] && $is_ajax_call && $mcad->rate_limit_api_request) { - exit(header('HTTP/1.1 401 Unauthorized')); + exit(header('HTTP/1.1 429 Too Many Requests')); } $error_page = $config['mc_antidos']['error_push_page']; if ($mcad->rate_limit_site_request) {