Skip to content

Commit 44cda1d

Browse files
sydseterCopilot
andauthored
Update copi.owasp.org/lib/copi_web/plugs/rate_limiter.ex
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fc2fc40 commit 44cda1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

copi.owasp.org/lib/copi_web/plugs/rate_limiter.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defmodule CopiWeb.Plugs.RateLimiter do
1616

1717
case RateLimiter.check_rate(ip_address, action) do
1818
{:ok, remaining} ->
19+
RateLimiter.record_action(ip_address, action)
1920
conn
2021
|> put_resp_header("x-ratelimit-remaining", to_string(remaining))
2122

0 commit comments

Comments
 (0)