We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cdbee commit 970a3cdCopy full SHA for 970a3cd
1 file changed
middleware/rate-limit.js
@@ -23,9 +23,6 @@ export default rateLimit({
23
handler: (request, response, next, options) => {
24
const tags = [`url:${request.url}`, `ip:${request.ip}`]
25
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))
29
// NOTE! At the time of writing, the actual rate limiting is disabled!
30
// At least we can start recording how often this happens in Datadog.
31
// The following line is commented out and replaced with `next()`
0 commit comments