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:
parent
a01de174f4
commit
0bbd056859
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user