mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-18 06:09:58 +00:00
actually use rate-limit status
This commit is contained in:
parent
c4830cac08
commit
f4b486a236
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
|||
keyGenerator: (req, res) => sha256(getIP(req), ipSalt),
|
||||
handler: (req, res, next, opt) => {
|
||||
return res.status(429).json({
|
||||
"status": "error",
|
||||
"status": "rate-limit",
|
||||
"text": loc(languageCode(req), 'ErrorRateLimit')
|
||||
});
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
|
|||
keyGenerator: (req, res) => sha256(getIP(req), ipSalt),
|
||||
handler: (req, res, next, opt) => {
|
||||
return res.status(429).json({
|
||||
"status": "error",
|
||||
"status": "rate-limit",
|
||||
"text": loc(languageCode(req), 'ErrorRateLimit')
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue