Skip to content

Commit 970a3cd

Browse files
authored
remove x-soft-rate-limit debugging header (#25635)
1 parent 61cdbee commit 970a3cd

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

middleware/rate-limit.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ export default rateLimit({
2323
handler: (request, response, next, options) => {
2424
const tags = [`url:${request.url}`, `ip:${request.ip}`]
2525
statsd.increment('middleware.rate_limit', 1, tags)
26-
// This is temporary until we fully understand fully that the
27-
// rate limiter really is working in production.
28-
response.setHeader('x-soft-rate-limit', JSON.stringify(options.store.hits))
2926
// NOTE! At the time of writing, the actual rate limiting is disabled!
3027
// At least we can start recording how often this happens in Datadog.
3128
// The following line is commented out and replaced with `next()`

0 commit comments

Comments
 (0)