aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/Storage/DAV.php2
-rw-r--r--lib/private/Preview/ProviderV1Adapter.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index 52ed8900569..c4ebb0a44dc 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -268,7 +268,7 @@ class DAV extends Common {
);
$this->statCache->set($path, $response);
} catch (ClientHttpException $e) {
- if ($e->getHttpStatus() === 404) {
+ if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
$this->statCache->clear($path . '/');
$this->statCache->set($path, false);
return false;
diff --git a/lib/private/Preview/ProviderV1Adapter.php b/lib/private/Preview/ProviderV1Adapter.php
index 903a7904bf8..0685193eb5b 100644
--- a/lib/private/Preview/ProviderV1Adapter.php
+++ b/lib/private/Preview/ProviderV1Adapter.php
@@ -36,11 +36,11 @@ class ProviderV1Adapter implements IProviderV2 {
}
public function getMimeType(): string {
- return $this->providerV1->getMimeType();
+ return (string)$this->providerV1->getMimeType();
}
public function isAvailable(FileInfo $file): bool {
- return $this->providerV1->isAvailable($file);
+ return (bool)$this->providerV1->isAvailable($file);
}
public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {