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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user