From ef114b65945acb9d832ee610ae2fd89180741a46 Mon Sep 17 00:00:00 2001 From: Philippe Kueck Date: Thu, 3 Jul 2014 12:04:38 +0200 Subject: [PATCH] silently discard the response body, needed for apache/mod_dav and maybe other dav servers which return an html body --- lib/private/files/storage/dav.php | 1 + 1 file changed, 1 insertion(+) 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);