From aa0fde29223236b131d3b9a170879d2b00888cbd Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 15 Jul 2026 13:38:11 +0200 Subject: [PATCH] perf(dav): Stream PROPFIND output Signed-off-by: Carl Schwan --- apps/dav/lib/Connector/Sabre/ServerFactory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/ServerFactory.php b/apps/dav/lib/Connector/Sabre/ServerFactory.php index 4226cc9579604..a1ea2a136f2c5 100644 --- a/apps/dav/lib/Connector/Sabre/ServerFactory.php +++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php @@ -78,7 +78,12 @@ public function createServer( $useCollection = $isPublicShare && !$needsSharesInRoot; $debugEnabled = $this->config->getSystemValue('debug', false); [$tree, $rootCollection] = $this->getTree($useCollection); + + // Set streaming of PROPFIND responses + Server::$streamMultiStatus = true; + $server = new Server($tree); + // Set URL explicitly due to reverse-proxy situations $server->httpRequest->setUrl($requestUri); $server->setBaseUri($baseUri);