From 7502e424e3e933faa4dee4ff5a54e909f847f4b8 Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Tue, 13 Aug 2019 10:16:31 +0200 Subject: [PATCH] Revert "Concatenate pdata and lemon cookies in the same set-cookie header (#1863)" This reverts commit c3a01c042cead8e827b90e5b1eebd83b589fc8ea --- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index f4cedb657..fa747cc01 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -83,10 +83,7 @@ sub handler { : () ), ); - my %headers = @{ $res->[1] }; - $headers{'Set-Cookie'} = $self->cookie(%v) . ',' . $headers{'Set-Cookie'}; - $headers{'Set-Cookie'} =~ s/,$//r; - @{ $res->[1] } = %headers; + push @{ $res->[1] }, 'Set-Cookie', $self->cookie(%v); } return $res; }