2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

HttpUtils.pm: another change for non-conforming Server (Forum #38587)

git-svn-id: https://svn.fhem.de/fhem/trunk@9775 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-04 11:19:48 +00:00
parent 6d9f1dad48
commit fe7d88f1f4

View File

@ -333,7 +333,7 @@ sub
HttpUtils_DataComplete($)
{
my ($ret) = @_;
return 0 if($ret !~ m/^(.*?)\r\n\r\n(.*)$/s);
return 0 if($ret !~ m/^(.*?)\r?\n\r?\n(.*)$/s);
my $hdr = $1;
my $data = $2;
return 0 if($hdr !~ m/Content-Length:\s*(\d+)/si);