summary refs log tree commit diff
path: root/t/01_hourly.t
diff options
context:
space:
mode:
Diffstat (limited to 't/01_hourly.t')
-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';
     }
     };