Delete SSO cookie with Nginx (#1630)

This commit is contained in:
Christophe Maudoux 2019-01-30 23:10:33 +01:00
parent 5a03e518c8
commit 84913b36eb

View File

@ -71,7 +71,7 @@ sub handler {
my $cn = $self->Lemonldap::NG::Handler::Main::tsv->{cookieName};
$cookie =~ s/\b$cn(http)?=[^,;]*[,;\s]*//og;
my @convertedHdrs =
( 'Content-Length' => 0, Cookie => ( $req->env->{HTTP_COOKIE} // '' ) );
( 'Content-Length' => 0, Cookie => ( $cookie // '' ) );
my $i = 0;
while ( my $k = shift @$hdrs ) {
my $v = shift @$hdrs;