aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-21 12:22:06 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-21 12:22:06 +0200
commit3df7a83c72fe379d6d37bd0da8f06d46145a728a (patch)
tree2c010e820e5d92b337533f45fe20f14907a79997
parentddd8eae9320bcd5317f18a6305120c358f72bcdd (diff)
parentef114b65945acb9d832ee610ae2fd89180741a46 (diff)
downloadnextcloud-server-3df7a83c72fe379d6d37bd0da8f06d46145a728a.tar.gz
nextcloud-server-3df7a83c72fe379d6d37bd0da8f06d46145a728a.zip
Merge pull request #9406 from philfry/master
silently discard the response body, needed for apache/mod_dav and maybe ...
-rw-r--r--lib/private/files/storage/dav.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/storage/dav.php b/lib/private/files/storage/dav.php
index 726688fe444..02c3ebd0202 100644
--- a/lib/private/files/storage/dav.php
+++ b/lib/private/files/storage/dav.php
@@ -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);