aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Search/SearchPlugin.php
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-12-14 10:32:14 +0100
committerGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-12-14 11:23:29 +0100
commit36d6b0f1e6eae58e20f35bb9d87671d338ea0a61 (patch)
tree5b615ccd1b9425476515f9786b0d81ba86fee903 /apps/dav/lib/CalDAV/Search/SearchPlugin.php
parentafc4b0aea5103fad469bd27d1d199778f956291c (diff)
downloadnextcloud-server-36d6b0f1e6eae58e20f35bb9d87671d338ea0a61.tar.gz
nextcloud-server-36d6b0f1e6eae58e20f35bb9d87671d338ea0a61.zip
refactor: Use Http framework where possibleuseHttpFramework
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Search/SearchPlugin.php')
-rw-r--r--apps/dav/lib/CalDAV/Search/SearchPlugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Search/SearchPlugin.php b/apps/dav/lib/CalDAV/Search/SearchPlugin.php
index c69537523f2..602ce151e12 100644
--- a/apps/dav/lib/CalDAV/Search/SearchPlugin.php
+++ b/apps/dav/lib/CalDAV/Search/SearchPlugin.php
@@ -7,6 +7,7 @@ namespace OCA\DAV\CalDAV\Search;
use OCA\DAV\CalDAV\CalendarHome;
use OCA\DAV\CalDAV\Search\Xml\Request\CalendarSearchReport;
+use OCP\AppFramework\Http;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
@@ -133,7 +134,7 @@ class SearchPlugin extends ServerPlugin {
$prefer = $this->server->getHTTPPrefer();
- $this->server->httpResponse->setStatus(207);
+ $this->server->httpResponse->setStatus(Http::STATUS_MULTI_STATUS);
$this->server->httpResponse->setHeader('Content-Type',
'application/xml; charset=utf-8');
$this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');