1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-16 13:34:11 +02:00

feat: introduce RateLimitException (#4199)

This commit is contained in:
Dag
2024-08-08 02:13:04 +02:00
committed by GitHub
parent 7073bb2f46
commit 9973f731df
6 changed files with 24 additions and 7 deletions

View File

@@ -519,7 +519,7 @@ class VkBridge extends BridgeAbstract
$uri = urljoin(self::URI, $headers['location'][0]);
if (str_contains($uri, '/429.html')) {
returnServerError('VK responded "Too many requests"');
throw new RateLimitException();
}
if (!preg_match('#^https?://vk.com/#', $uri)) {