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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9769 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-04 08:05:48 +00:00
parent 28017f1105
commit 2786fc5f10

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;