From dc070f30cfd654b104edfe82ee1c6168c6f97482 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 18 Sep 2010 15:34:53 -0500 Subject: use valid base64 in the tests --- t/01-basic.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't/01-basic.t') diff --git a/t/01-basic.t b/t/01-basic.t index 9646510..fb79ad4 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -31,21 +31,21 @@ use Plack::Builder; { my $res = $cb->( - GET "/", "Authorization" => "Basic dGVzdDplZGNiYQ", + GET "/", "Authorization" => "Basic dGVzdDplZGNiYQ==", ); is($res->code, 401, "request with wrong password gets 401"); } { my $res = $cb->( - GET "/", "Authorization" => "Basic dHNldDphYmNkZQ", + GET "/", "Authorization" => "Basic dHNldDphYmNkZQ==", ); is($res->code, 401, "request with unknown username gets 401"); } { my $res = $cb->( - GET "/", "Authorization" => "Basic dGVzdDphYmNkZQ", + GET "/", "Authorization" => "Basic dGVzdDphYmNkZQ==", ); is($res->code, 200, "valid authentication succeeds"); is($res->content, "Hello test", "and gets the right content"); -- cgit v1.2.3-54-g00ecf