From 92ac78563e9fb6748b752e4cde4b07caedbdca40 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 7a1b6191014bf..cb0f1e7bfc6a9 100644 --- a/apps/dav/lib/Connector/Sabre/ServerFactory.php +++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php @@ -79,7 +79,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);