Skip to content
Snippets Groups Projects
Commit ef114b65 authored by Philippe Kueck's avatar Philippe Kueck
Browse files

silently discard the response body, needed for apache/mod_dav and maybe other...

silently discard the response body, needed for apache/mod_dav and maybe other dav servers which return an html body
parent b8ced702
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment