From 81e4e5bbd5cf289f040cbda2d62bbda57814b402 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 27 Apr 2010 17:27:28 +0200 Subject: header, not headers --- t/01_hourly.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/01_hourly.t') 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'; } }; -- cgit v1.2.3