Skip to content

Commit

Permalink
fix(sandbox): resolved the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Mar 27, 2024
1 parent 2823ff4 commit 6f83675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function rateLimiter<
skipFailedRequests = false,
skipSuccessfulRequests = false,
keyGenerator = (c: Context<E, P, I>) =>
c.req.raw.headers.get("CF-Connecting-IP") ?? "",
c.req.header("cf-connecting-ip") ?? "",
skip = () => false,
requestWasSuccessful = (c: Context<E, P, I>) => c.res.status < 400,
handler = async (
Expand Down

0 comments on commit 6f83675

Please sign in to comment.