X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FCredential%2FHTTP.pm;h=b2234b5a4bb31127a44ad029ea87cf72b67da09c;hb=60dd48a6bea236e5ceccb78c37b12f788c30129d;hp=fa7c935f678b4f44e06fdaf665defc9b997829a8;hpb=7e3323f7e97349ca095e0d986086434a095bb256;p=catagits%2FCatalyst-Authentication-Credential-HTTP.git diff --git a/lib/Catalyst/Authentication/Credential/HTTP.pm b/lib/Catalyst/Authentication/Credential/HTTP.pm index fa7c935..b2234b5 100644 --- a/lib/Catalyst/Authentication/Credential/HTTP.pm +++ b/lib/Catalyst/Authentication/Credential/HTTP.pm @@ -27,7 +27,7 @@ sub new { $config->{username_field} ||= 'username'; # _config is shity back-compat with our base class. - my $self = { %$config, _config => $config, _debug => $app->debug }; + my $self = { %$config, _config => $config, _debug => $app->debug ? 1 : 0 }; bless $self, $class; $self->realm($realm);