summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-03 12:06:15 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-03 12:06:15 +0200
commit958d4e4d38fa04b51ddcbc1120d49dde0156aaf0 (patch)
tree4ca0c07c6239083fbcfe74ce5e32d3318179a2e7
parentreadme (diff)
downloadplack-middleware-throttle-958d4e4d38fa04b51ddcbc1120d49dde0156aaf0.tar.gz
return a hash object
-rw-r--r--lib/Plack/Middleware/Throttle.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Plack/Middleware/Throttle.pm b/lib/Plack/Middleware/Throttle.pm
index 8ba1537..a688425 100644
--- a/lib/Plack/Middleware/Throttle.pm
+++ b/lib/Plack/Middleware/Throttle.pm
@@ -32,6 +32,7 @@ sub _create_backend {
 
     if ( defined !$backend ) {
         Plack::Util::load_class("Plack::Middleware::Throttle::Backend::Hash");
+        return Plack::Middleware::Throttle::Backend::Hash->new;
     }
 
     return $backend if defined $backend && Scalar::Util::blessed $backend;