fix for big files in web_dav as suggested by bug [ 964418 ] Downloading large files through webdav fails

This commit is contained in:
Ralf Becker 2004-07-10 08:01:25 +00:00
parent 8e71034baf
commit e1599a19c0

View File

@ -786,7 +786,9 @@ class net_http_client
else if ($this->responseHeaders['Content-Length'] )
{
$length = $this->responseHeaders['Content-Length'];
$data = fread( $this->socket, $length );
while (!feof($this->socket)) {
$data .= fread($this->socket, 1024);
}
if( $this->debug & DBGSOCK ) echo "DBG.SOCK socket_read using Content-Length ($length)\n";
}