Skip to content

Commit

Permalink
fix(sandbox): correct the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
MathurAditya724 committed Mar 27, 2024
1 parent 11016d7 commit 2823ff4
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.header("CF-Connecting-IP") ?? "",
c.req.raw.headers.get("CF-Connecting-IP") ?? "",
skip = () => false,
requestWasSuccessful = (c: Context<E, P, I>) => c.res.status < 400,
handler = async (
Expand Down

0 comments on commit 2823ff4

Please sign in to comment.