mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
silently discard the response body, needed for apache/mod_dav and maybe other dav servers which return an html body
This commit is contained in:
parent
b8ced7025e
commit
ef114b6594
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue