Skip to content

Commit

Permalink
remove x-soft-rate-limit debugging header (github#25635)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe authored Feb 24, 2022
1 parent 61cdbee commit 970a3cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions middleware/rate-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export default rateLimit({
handler: (request, response, next, options) => {
const tags = [`url:${request.url}`, `ip:${request.ip}`]
statsd.increment('middleware.rate_limit', 1, tags)
// This is temporary until we fully understand fully that the
// rate limiter really is working in production.
response.setHeader('x-soft-rate-limit', JSON.stringify(options.store.hits))
// NOTE! At the time of writing, the actual rate limiting is disabled!
// At least we can start recording how often this happens in Datadog.
// The following line is commented out and replaced with `next()`
Expand Down

0 comments on commit 970a3cd

Please sign in to comment.