Set headers to {} if empty (Fixes: #1439)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 7 years ago
parent d9cb157477
commit eac34d8ff0
  1. 1
      lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm

@ -353,6 +353,7 @@ sub headersInit {
$class->logger->warn('Empty vhost in headers, skipping');
next;
}
$headers->{$vhost} ||= {};
my %headers = %{ $headers->{$vhost} };
$class->tsv->{headerList}->{$vhost} = [ keys %headers ];
my $sub = '';

Loading…
Cancel
Save