aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/DAV
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-12-16 10:36:17 +0100
committerGitHub <noreply@github.com>2024-12-16 10:36:17 +0100
commit7c59119c03c491f3534021b7011adfebf6e27b19 (patch)
tree1cf550182345dbbafabedae4b7f4d6d53cb10651 /apps/dav/lib/DAV
parentace16c1d47b32ba16d0d61cbf431b187ef5ddca1 (diff)
parent36d6b0f1e6eae58e20f35bb9d87671d338ea0a61 (diff)
downloadnextcloud-server-7c59119c03c491f3534021b7011adfebf6e27b19.tar.gz
nextcloud-server-7c59119c03c491f3534021b7011adfebf6e27b19.zip
Merge pull request #49867 from nextcloud/useHttpFramework
refactor: Use Http framework where possible
Diffstat (limited to 'apps/dav/lib/DAV')
-rw-r--r--apps/dav/lib/DAV/Sharing/Plugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Plugin.php b/apps/dav/lib/DAV/Sharing/Plugin.php
index cef8dc0b689..03e63813bab 100644
--- a/apps/dav/lib/DAV/Sharing/Plugin.php
+++ b/apps/dav/lib/DAV/Sharing/Plugin.php
@@ -12,6 +12,7 @@ use OCA\DAV\CalDAV\CalendarHome;
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\DAV\Sharing\Xml\Invite;
use OCA\DAV\DAV\Sharing\Xml\ShareRequest;
+use OCP\AppFramework\Http;
use OCP\IConfig;
use OCP\IRequest;
use Sabre\DAV\Exception\NotFound;
@@ -157,7 +158,7 @@ class Plugin extends ServerPlugin {
$node->updateShares($message->set, $message->remove);
- $response->setStatus(200);
+ $response->setStatus(Http::STATUS_OK);
// Adding this because sending a response body may cause issues,
// and I wanted some type of indicator the response was handled.
$response->setHeader('X-Sabre-Status', 'everything-went-well');