mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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:
parent
15b904c6e6
commit
1061a3ef2a
@ -671,7 +671,7 @@ sub JsonMod_ApiResponse {
|
|||||||
};
|
};
|
||||||
|
|
||||||
my ($content, $encoding);
|
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=(.+)/);
|
last if (($content, $encoding) = $header =~ m/^Content-Type:\s([^;]+).*charset=(.+)/);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user