summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Server.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-06-04 16:22:39 +0200
committerRobin Appelman <robin@icewind.nl>2021-08-23 15:38:58 +0200
commitfd5e11a81abcc46605dac2d26f7374d34e08a152 (patch)
tree1b680e87671856d7c193096f9bb5bb39234768cb /apps/dav/lib/Server.php
parenta8547cc0eadb4e92e1730b98424a413f22f76b50 (diff)
downloadnextcloud-server-fd5e11a81abcc46605dac2d26f7374d34e08a152.tar.gz
nextcloud-server-fd5e11a81abcc46605dac2d26f7374d34e08a152.zip
Add dav plugin to trigger recalculating of checksums
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r--apps/dav/lib/Server.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index e9634f670d3..a0ab68813ac 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -46,6 +46,7 @@ use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\Connector\Sabre\BearerAuth;
use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin;
use OCA\DAV\Connector\Sabre\CachingTree;
+use OCA\DAV\Connector\Sabre\ChecksumUpdatePlugin;
use OCA\DAV\Connector\Sabre\CommentPropertiesPlugin;
use OCA\DAV\Connector\Sabre\CopyEtagHeaderPlugin;
use OCA\DAV\Connector\Sabre\DavAclPlugin;
@@ -243,6 +244,7 @@ class Server {
!\OC::$server->getConfig()->getSystemValue('debug', false)
)
);
+ $this->server->addPlugin(new ChecksumUpdatePlugin());
$this->server->addPlugin(
new \Sabre\DAV\PropertyStorage\Plugin(