mirror of
https://github.com/directus/directus.git
synced 2026-01-25 19:58:23 -05:00
I can't spell
sorry about that
This commit is contained in:
@@ -53,7 +53,7 @@ const rateLimiter: RequestHandler = (req, res, next) => {
|
||||
const secs = Math.round(rejRes.msBeforeNext / 1000) || 1;
|
||||
res.set('Retry-After', String(secs));
|
||||
res.status(429).send('Too Many Requests');
|
||||
throw new HitRateLimitException(`To many requests, retry after ${secs}.`);
|
||||
throw new HitRateLimitException(`Too many requests, retry after ${secs}.`);
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user