Added timeout value to WebDAV post setup check

Fixes #5357
This commit is contained in:
Vincent Petry 2013-10-16 12:33:30 +02:00
parent 7037f9c6f8
commit 52e31405f7

View File

@ -806,7 +806,9 @@ class OC_Util {
'baseUri' => OC_Helper::linkToRemote('webdav'),
);
$client = new \Sabre_DAV_Client($settings);
$client = new \OC_DAVClient($settings);
$client->setRequestTimeout(10);
// for this self test we don't care if the ssl certificate is self signed and the peer cannot be verified.
$client->setVerifyPeer(false);