Commit ecea942f authored by Xavier Guimard's avatar Xavier Guimard

Avoid little warning

parent c5087966
......@@ -9,7 +9,7 @@ our $VERSION = '2.0.0';
around init => sub {
my ( $method, $self, $args ) = splice @_;
Lemonldap::NG::Handler::SharedConf->init( $self );
Lemonldap::NG::Handler::SharedConf->init($self);
return $self->$method($args);
};
......@@ -40,8 +40,11 @@ sub _run {
# it has to prompt user with the URL
elsif (
( $res == 302 or $res == 303 )
and ( $req->accept =~ m|application/json|
or $req->contentType =~ m|application/json| )
and (
$req->accept =~ m|application/json|
or ( $req->contentType
and $req->contentType =~ m|application/json| )
)
)
{
return [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment