FHEMWEB: Fix large HTTPS requests (writing fhem.cfg)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-08-18 15:57:28 +00:00
parent b6b9c86a29
commit 9aada8cc59

View File

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