Skip to content

Commit

Permalink
Enable streaming for propfind
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Mar 29, 2021
1 parent f060b4c commit 5681f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/dav/appinfo/v1/webdav.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@
$event = new \OCP\SabrePluginEvent($server);
\OC::$server->getEventDispatcher()->dispatch('OCA\DAV\Connector\Sabre::authInit', $event);

\Sabre\DAV\Server::$streamMultiStatus = true;
// And off we go!
$server->exec();
1 change: 1 addition & 0 deletions apps/dav/lib/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ public function __construct(IRequest $request, $baseUri) {
));

if ($this->isRequestForSubtree(['files', 'trash-bin', 'public-files'])) {
\Sabre\DAV\Server::$streamMultiStatus = true;
$this->server->addPlugin(new ViewOnlyPlugin(
OC::$server->getLogger()
));
Expand Down

0 comments on commit 5681f1a

Please sign in to comment.