diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-29 15:16:53 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-29 15:26:46 +0200 |
commit | df669a29360a3ec69e87829f15571f261b39280b (patch) | |
tree | a91f28cd4f5140a7baf47b5cbb1051d83a62b6c0 /core/Controller | |
parent | b219eadb8f3f459f2c71e937dfd3542f0792da8e (diff) | |
download | nextcloud-server-df669a29360a3ec69e87829f15571f261b39280b.tar.gz nextcloud-server-df669a29360a3ec69e87829f15571f261b39280b.zip |
Set etag for capabilities endpoint
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/OCSController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php index 7ed43fc6003..057dee78676 100644 --- a/core/Controller/OCSController.php +++ b/core/Controller/OCSController.php @@ -108,7 +108,9 @@ class OCSController extends \OCP\AppFramework\OCSController { $result['capabilities'] = $this->capabilitiesManager->getCapabilities(true); } - return new DataResponse($result); + $response = new DataResponse($result); + $response->setETag(md5(json_encode($result))); + return $response; } /** |