diff options
| author | franck cuny <franck@lumberjaph.net> | 2010-04-27 17:27:28 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2010-04-27 17:27:28 +0200 |
| commit | 81e4e5bbd5cf289f040cbda2d62bbda57814b402 (patch) | |
| tree | 5d8da31207f642454a49e21a317382498d9dc677 /t/01_hourly.t | |
| parent | return a hash object (diff) | |
| download | plack-middleware-throttle-81e4e5bbd5cf289f040cbda2d62bbda57814b402.tar.gz | |
header, not headers
Diffstat (limited to 't/01_hourly.t')
| -rw-r--r-- | t/01_hourly.t | 4 |
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'; } }; |
