diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-11-30 15:40:17 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-01-19 16:24:26 +0100 |
commit | ffba6d0a7e1988bed1c0f0dfa2334092a65c568d (patch) | |
tree | 02e0daa2bf915983f6ec40f574b0ca8640c205d1 /apps/dav | |
parent | 8d41cbb97a7a1fa750db520dc8879da4402f31e3 (diff) | |
download | nextcloud-server-ffba6d0a7e1988bed1c0f0dfa2334092a65c568d.tar.gz nextcloud-server-ffba6d0a7e1988bed1c0f0dfa2334092a65c568d.zip |
Added system tags GUI in sidebar
Added files details sidebar panel to assign/unassign/rename/delete
system tags.
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/systemtag/systemtagplugin.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/systemtag/systemtagplugin.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/systemtag/systemtagplugin.php b/apps/dav/lib/systemtag/systemtagplugin.php index 2cab9ba8d50..d81ccbf84b0 100644 --- a/apps/dav/lib/systemtag/systemtagplugin.php +++ b/apps/dav/lib/systemtag/systemtagplugin.php @@ -127,7 +127,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin { $url .= '/'; } - $response->setHeader('Location', $url . $tag->getId()); + $response->setHeader('Content-Location', $url . $tag->getId()); // created $response->setStatus(201); diff --git a/apps/dav/tests/unit/systemtag/systemtagplugin.php b/apps/dav/tests/unit/systemtag/systemtagplugin.php index e0fbd40f5b9..1d22af75188 100644 --- a/apps/dav/tests/unit/systemtag/systemtagplugin.php +++ b/apps/dav/tests/unit/systemtag/systemtagplugin.php @@ -201,7 +201,7 @@ class SystemTagPlugin extends \Test\TestCase { $response->expects($this->once()) ->method('setHeader') - ->with('Location', 'http://example.com/dav/systemtags/1'); + ->with('Content-Location', 'http://example.com/dav/systemtags/1'); $this->plugin->httpPost($request, $response); } @@ -266,7 +266,7 @@ class SystemTagPlugin extends \Test\TestCase { $response->expects($this->once()) ->method('setHeader') - ->with('Location', 'http://example.com/dav/systemtags/1'); + ->with('Content-Location', 'http://example.com/dav/systemtags/1'); $this->plugin->httpPost($request, $response); } |