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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9754 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-02 13:28:21 +00:00
parent badff4b62a
commit 68b142adf3

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