mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
FHEMWEB: Fix large HTTPS requests (writing fhem.cfg)
git-svn-id: https://svn.fhem.de/fhem/trunk@3743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1961457e0f
commit
ededa6ddd9
@ -236,6 +236,13 @@ FW_Read($)
|
||||
}
|
||||
|
||||
$hash->{BUF} .= $buf;
|
||||
if($defs{$FW_wname}{SSL}) {
|
||||
while($c->pending()) {
|
||||
sysread($c, $buf, 1024);
|
||||
$hash->{BUF} .= $buf;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$hash->{HDR}) {
|
||||
return if($hash->{BUF} !~ m/^(.*)(\n\n|\r\n\r\n)(.*)$/s);
|
||||
$hash->{HDR} = $1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user