Avoid warning

This commit is contained in:
Christophe Maudoux 2019-09-16 17:22:35 +02:00
parent c94e2534a9
commit fcf05c5602

View File

@ -2215,7 +2215,8 @@ sub getNameIDFormat {
# @return Lasso HTTP Method integer
sub getHttpMethod {
my ( $self, $method ) = @_;
$method ||= '';
return Lasso::Constants::HTTP_METHOD_POST
if ( $method =~ /^(http)?[-_]?post$/i );
return Lasso::Constants::HTTP_METHOD_REDIRECT