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 0139cca449
commit 14d9f16a81

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);