Headers following rfc6648
This commit is contained in:
@@ -36,10 +36,10 @@ function rateLimit(userLimitsApi, endpointGroup = null) {
|
||||
const [isBlocked, limit, remaining, retry, reset] = userRateLimit;
|
||||
|
||||
res.set({
|
||||
'X-Rate-Limit-Limit': limit,
|
||||
'X-Rate-Limit-Remaining': remaining,
|
||||
'X-Rate-Limit-Retry-After': retry,
|
||||
'X-Rate-Limit-Reset': reset
|
||||
'Carto-Rate-Limit-Limit': limit,
|
||||
'Carto-Rate-Limit-Remaining': remaining,
|
||||
'Retry-After': retry,
|
||||
'Carto-Rate-Limit-Reset': reset
|
||||
});
|
||||
|
||||
if (isBlocked) {
|
||||
|
||||
Reference in New Issue
Block a user