Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
fix: remove X-RateLimit-Consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTheAllmighty committed Jun 21, 2019
1 parent 92c3ce0 commit 961b36a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rate-limiter.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export class RateLimiterInterceptor implements NestInterceptor {

response.set('Retry-After', Math.ceil(rateLimiterResponse.msBeforeNext / 1000));
response.set('X-RateLimit-Limit', points);
response.set('X-RateLimit-Consumed', pointsConsumed);
response.set('X-Retry-Remaining', rateLimiterResponse.remainingPoints);
response.set('X-Retry-Reset', new Date(Date.now() + rateLimiterResponse.msBeforeNext).toTimeString());

Expand Down

0 comments on commit 961b36a

Please sign in to comment.