Skip to content

Commit 306d157

Browse files
committed
docs: fix Basic Auth example typo
1 parent ca95156 commit 306d157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced_configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ An example implementation for blocking hackers who spam basic auth attempts. See
8585
# block all requests from that IP for 1 hour.
8686
Rack::Attack.blocklist('basic auth crackers') do |req|
8787
Rack::Attack::Allow2Ban.filter(req.ip, :maxretry => 5, :findtime => 1.minute, :bantime => 1.hour) do
88-
# Return true if the authorization header not incorrect
88+
# Return true if the authorization header is incorrect
8989
auth = Rack::Auth::Basic::Request.new(req.env)
9090
auth.credentials != [my_username, my_password]
9191
end

0 commit comments

Comments
 (0)