Skip to content

Commit baeb766

Browse files
Merge pull request #62164 from nextcloud/carl/stream-output
perf(dav): Stream PROPFIND output
2 parents 9a23b75 + 92ac785 commit baeb766

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/dav/lib/Connector/Sabre/ServerFactory.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ public function createServer(
7979
$useCollection = $isPublicShare && !$needsSharesInRoot;
8080
$debugEnabled = $this->config->getSystemValue('debug', false);
8181
[$tree, $rootCollection] = $this->getTree($useCollection);
82+
83+
// Set streaming of PROPFIND responses
84+
Server::$streamMultiStatus = true;
85+
8286
$server = new Server($tree);
87+
8388
// Set URL explicitly due to reverse-proxy situations
8489
$server->httpRequest->setUrl($requestUri);
8590
$server->setBaseUri($baseUri);

0 commit comments

Comments
 (0)