Merge pull request #9406 from philfry/master

silently discard the response body, needed for apache/mod_dav and maybe ...
This commit is contained in:
Vincent Petry 2014-07-21 12:22:06 +02:00
commit 3df7a83c72
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ class DAV extends \OC\Files\Storage\Common {
curl_setopt($curl, CURLOPT_INFILE, $source); // file pointer
curl_setopt($curl, CURLOPT_INFILESIZE, filesize($path));
curl_setopt($curl, CURLOPT_PUT, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
if ($this->secure === true) {
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);