2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

HttpUtils.pm: Handle non-standard header/body separator (Forum #43482)

git-svn-id: https://svn.fhem.de/fhem/trunk@9769 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-04 08:05:48 +00:00
parent e1e7272d6e
commit 0cca4b8148

View File

@ -419,7 +419,7 @@ HttpUtils_ParseAnswer($$)
$hash->{hu_filecount} = 0 if(!$hash->{hu_filecount});
$hash->{hu_filecount}++;
$ret=~ s/(.*?)\r\n\r\n//s; # Not greedy: switch off the header.
$ret=~ s/(.*?)\r?\n\r?\n//s; # Not greedy: separate the header (F:#43482)
return ("", $ret) if(!defined($1));
$hash->{httpheader} = $1;