2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

98_JsonMod.pm: cosmetic change

git-svn-id: https://svn.fhem.de/fhem/trunk@27457 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj 2023-04-17 23:35:57 +00:00
parent 15b904c6e6
commit 1061a3ef2a

View File

@ -671,7 +671,7 @@ sub JsonMod_ApiResponse {
};
my ($content, $encoding);
foreach my $header (split /\r\n/, $param->{'httpheader'}) {
foreach my $header (split /\r\n/, $param->{'httpheader'} //= '') {
last if (($content, $encoding) = $header =~ m/^Content-Type:\s([^;]+).*charset=(.+)/);
};