summaryrefslogtreecommitdiff
path: root/t/01_hourly.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-27 17:27:28 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-27 17:27:28 +0200
commit81e4e5bbd5cf289f040cbda2d62bbda57814b402 (patch)
tree5d8da31207f642454a49e21a317382498d9dc677 /t/01_hourly.t
parentreturn a hash object (diff)
downloadplack-middleware-throttle-81e4e5bbd5cf289f040cbda2d62bbda57814b402.tar.gz
header, not headers
Diffstat (limited to '')
-rw-r--r--t/01_hourly.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/01_hourly.t b/t/01_hourly.t
index 31a4e98..63f912d 100644
--- a/t/01_hourly.t
+++ b/t/01_hourly.t
@@ -23,12 +23,12 @@ test_psgi
my $req = GET "http://localhost/";
my $res = $cb->($req);
is $res->code, 200, 'http response is 200';
- ok $res->headers('X-RateLimit-Limit'), 'header ratelimit';
+ ok $res->header('X-RateLimit-Limit'), 'header ratelimit';
}
my $req = GET "http://localhost/";
my $res = $cb->($req);
is $res->code, 503, 'http response is 503';
- ok $res->headers('X-RateLimit-Reset'), 'header reset';
+ ok $res->header('X-RateLimit-Reset'), 'header reset';
}
};