fix(rest): sublimit all requests on unhandled routes (#7366)

This commit is contained in:
ckohen
2022-02-05 05:30:55 -08:00
committed by GitHub
parent a7b80b9d9b
commit 733ac82d5d
2 changed files with 19 additions and 5 deletions

View File

@@ -33,5 +33,6 @@ export function hasSublimit(bucketRoute: string, body?: unknown, method?: string
return ['name', 'topic'].some((key) => Reflect.has(castedBody, key));
}
return false;
// If we are checking if a request has a sublimit on a route not checked above, sublimit all requests to avoid a flood of 429s
return true;
}