mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 13:29:26 +00:00
01_FHEMWEB: content-length patch (Forum #41030)
git-svn-id: https://svn.fhem.de/fhem/trunk@9242 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a1a712203b
commit
f7cc3be88c
@ -323,7 +323,7 @@ FW_Read($$)
|
|||||||
return if($hash->{BUF} !~ m/^(.*?)(\n\n|\r\n\r\n)(.*)$/s);
|
return if($hash->{BUF} !~ m/^(.*?)(\n\n|\r\n\r\n)(.*)$/s);
|
||||||
$hash->{HDR} = $1;
|
$hash->{HDR} = $1;
|
||||||
$hash->{BUF} = $3;
|
$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;
|
$hash->{CONTENT_LENGTH} = $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user