diff options
author | Philippe Kueck <pk@plusline.de> | 2014-07-03 12:04:38 +0200 |
---|---|---|
committer | Philippe Kueck <pk@plusline.de> | 2014-07-03 12:04:38 +0200 |
commit | ef114b65945acb9d832ee610ae2fd89180741a46 (patch) | |
tree | 268acf76d6e1505a68d5aec4a1a4439908e5bdc5 /lib | |
parent | b8ced7025e170c98ba43992a81e39465f1e4f97b (diff) | |
download | nextcloud-server-ef114b65945acb9d832ee610ae2fd89180741a46.tar.gz nextcloud-server-ef114b65945acb9d832ee610ae2fd89180741a46.zip |
silently discard the response body, needed for apache/mod_dav and maybe other dav servers which return an html body
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/dav.php | 1 |
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); |