01_FHEMWEB: content-length patch (Forum #41030)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9242 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -323,7 +323,7 @@ FW_Read($$)
|
||||
return if($hash->{BUF} !~ m/^(.*?)(\n\n|\r\n\r\n)(.*)$/s);
|
||||
$hash->{HDR} = $1;
|
||||
$hash->{BUF} = $3;
|
||||
if($hash->{HDR} =~ m/Content-Length: ([^\r\n]*)/s) {
|
||||
if($hash->{HDR} =~ m/Content-Length:\s*([^\r\n]*)/si) {
|
||||
$hash->{CONTENT_LENGTH} = $1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user