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

This commit is contained in:
Xavier Guimard 2018-06-01 16:37:48 +02:00
parent d9cb157477
commit eac34d8ff0

View File

@ -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 = '';