Update patch for fixing double Traefik headers
This commit is contained in:
parent
579f78b689
commit
d330992b4f
|
@ -36,10 +36,16 @@ sub _run {
|
|||
|
||||
sub handler {
|
||||
my ( $self, $req ) = @_;
|
||||
# See https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/merge_requests/480
|
||||
my @convertedHdrs =
|
||||
( 'Content-Length' => 0, Cookie => ( $req->env->{HTTP_COOKIE} // '' ) );
|
||||
while ( my ( $k, $v ) = splice( @{ $req->{respHeaders} }, 0, 2 ) ) {
|
||||
push @convertedHdrs, $k, $v;
|
||||
if ( $k =~ /^(?:Deleteheader\d+|Cookie)$/ ) {
|
||||
next;
|
||||
}
|
||||
else {
|
||||
push @convertedHdrs, $k, $v;
|
||||
}
|
||||
}
|
||||
return [ 200, \@convertedHdrs, [] ];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue