From 4df533fb8cca04c38cd44debb118fef569bcb7c0 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 14 Apr 2021 22:45:25 -0500 Subject: make cf-connecting-ip lowercase --- build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/index.js b/build/index.js index dad9312..4dbe69a 100644 --- a/build/index.js +++ b/build/index.js @@ -19,7 +19,7 @@ const limiter = express_rate_limit_1.default({ }, keyGenerator: (req) => { var _a; - return ((_a = req.headers['Cf-Connecting-Ip']) !== null && _a !== void 0 ? _a : req.ip).toString(); + return ((_a = req.headers['cf-connecting-ip']) !== null && _a !== void 0 ? _a : req.ip).toString(); } }); app.use(limiter); -- cgit