2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-10 08:04:00 +00:00

HttpUtils.pm: "chunked patch"-patch (Forum #43377)

git-svn-id: https://svn.fhem.de/fhem/trunk@9754 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-11-02 13:28:21 +00:00
parent a01de174f4
commit 0bbd056859

View File

@ -403,7 +403,7 @@ HttpUtils_ParseAnswer($$)
while( $offset < $size ) {
my $next = index($ret, "\r\n", $offset);
last if( $next == -1 );
if( substr($ret,$offset,$next-$offset) =~ m/([\da-f]+)/ ) {
if( substr($ret,$offset,$next-$offset) =~ m/([\da-f]+)/i ) {
my $len = hex($1);
$offset = $next + 2;
$data .= substr($ret,$offset,$len);