diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-05-04 10:22:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 10:22:01 +0200 |
commit | a93d182bac88707002b70d2dcc881b2a1020b749 (patch) | |
tree | de61698f8934b3f23dd9cb4b4463869559bbc8ed /core | |
parent | e10226429987f6bff3a11bf9c52f3398f2ee039c (diff) | |
parent | df669a29360a3ec69e87829f15571f261b39280b (diff) | |
download | nextcloud-server-a93d182bac88707002b70d2dcc881b2a1020b749.tar.gz nextcloud-server-a93d182bac88707002b70d2dcc881b2a1020b749.zip |
Merge pull request #20722 from nextcloud/enh/20693/etag-capabilities
Set etag for capabilities endpoint
Diffstat (limited to 'core')
-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; } /** |