mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix for big files in web_dav as suggested by bug [ 964418 ] Downloading large files through webdav fails
This commit is contained in:
parent
8e71034baf
commit
e1599a19c0
@ -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";
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user