case insensitive header for rate limits, fix rate limit default settings

Also disabled rate limit bypass right as it doesn't work...
This commit is contained in:
TheArcaneBrony
2022-12-19 19:51:14 +11:00
committed by Madeline
parent 374e8e8745
commit da2fe81a8b
2 changed files with 30 additions and 30 deletions
@@ -14,5 +14,5 @@ export class RateLimits {
count: 10,
window: 5
};
routes: RouteRateLimit;
routes: RouteRateLimit = new RouteRateLimit();
}
@@ -14,6 +14,6 @@ export class RouteRateLimit {
count: 10,
window: 5
};
auth: AuthRateLimit;
auth: AuthRateLimit = new AuthRateLimit();
// TODO: rate limit configuration for all routes
}