Use Plack::Request accessors (#2335)

Moo
Maxime Besson 5 years ago
parent 6c2dd27934
commit 163c90b42f
  1. 4
      lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Run.pm

@ -613,7 +613,7 @@ sub _getPort {
return $class->tsv->{port}->{_};
}
else {
return $req->{env}->{SERVER_PORT};
return $req->port;
}
}
}
@ -637,7 +637,7 @@ sub _isHttps {
return $class->tsv->{https}->{_};
}
else {
return ( uc( $req->{env}->{HTTPS} || "OFF" ) eq "ON" );
return $req->secure;
}
}
}

Loading…
Cancel
Save