From c99a965fdb317a50a23306c9c2747572d1dfca95 Mon Sep 17 00:00:00 2001 From: barelyknown Date: Sat, 23 Feb 2013 19:17:25 -0500 Subject: [PATCH] Fixed syntax error in response example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fc857a..0653e86 100644 --- a/README.md +++ b/README.md @@ -125,11 +125,11 @@ A [Rack::Request](http://rack.rubyforge.org/doc/classes/Rack/Request.html) objec Customize the response of blacklisted and throttled requests using an object that adheres to the [Rack app interface](http://rack.rubyforge.org/doc/SPEC.html). - Rack:Attack.blacklisted_response = lambda do |env| + Rack::Attack.blacklisted_response = lambda do |env| [ 503, {}, ['Blocked']] end - Rack:Attack.throttled_response = lambda do |env| + Rack::Attack.throttled_response = lambda do |env| # name and other data about the matched throttle body = [ env['rack.attack.matched'],