diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-09-18 15:34:53 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-09-18 15:34:53 -0500 |
commit | dc070f30cfd654b104edfe82ee1c6168c6f97482 (patch) | |
tree | 01dd797dfd1c5fc2b4d04e182b6d6f5b4fd09a23 /t/01-basic.t | |
parent | 00fdb4e3956a26be005dc8f1fe7638f6cbf16f6b (diff) | |
download | plack-middleware-auth-htpasswd-dc070f30cfd654b104edfe82ee1c6168c6f97482.tar.gz plack-middleware-auth-htpasswd-dc070f30cfd654b104edfe82ee1c6168c6f97482.zip |
use valid base64 in the tests0.02
Diffstat (limited to 't/01-basic.t')
-rw-r--r-- | t/01-basic.t | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |