2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 11:26:55 +00:00

HttpUtils.pm: check content-length case insensitive (Forum #38126)

git-svn-id: https://svn.fhem.de/fhem/trunk@8747 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-06-14 15:33:00 +00:00
parent 9a5f3fddf7
commit 68937afbe0

View File

@ -273,7 +273,7 @@ HttpUtils_DataComplete($)
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+)/s);
return 0 if($hdr !~ m/Content-Length:\s*(\d+)/si);
return 0 if(length($data) < $1);
return 1;
}