diff options
author | Robin Appelman <robin@icewind.nl> | 2018-02-09 13:09:03 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-02-09 17:13:24 +0100 |
commit | 97b44605f4d38a1742cf95204ed6b5e9ca0d6951 (patch) | |
tree | bb42ea6222ed56ecfde35790467ba007ad136b52 /lib | |
parent | 9b25ff9fcb7299419c42b457da23ea3bae186157 (diff) | |
download | nextcloud-server-97b44605f4d38a1742cf95204ed6b5e9ca0d6951.tar.gz nextcloud-server-97b44605f4d38a1742cf95204ed6b5e9ca0d6951.zip |
Adjust dav client to new guzzle
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index f9c6175308c..1496fda5140 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -35,7 +35,7 @@ namespace OC\Files\Storage; use Exception; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Message\ResponseInterface; +use Psr\Http\Message\ResponseInterface; use Icewind\Streams\CallbackWrapper; use OC\Files\Filesystem; use Icewind\Streams\IteratorDirectory; @@ -344,7 +344,7 @@ class DAV extends Common { 'auth' => [$this->user, $this->password], 'stream' => true ]); - } catch (RequestException $e) { + } catch (\GuzzleHttp\Exception\ClientException $e) { if ($e->getResponse() instanceof ResponseInterface && $e->getResponse()->getStatusCode() === 404) { return false; |