From da435b1e67930e85fc30fd1b94c6214caa086f4f Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 2 Feb 2022 16:10:52 +0100 Subject: Support CRUD share permissions Signed-off-by: Louis Chemineau --- apps/files_sharing/src/mixins/ShareRequests.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'apps/files_sharing/src/mixins') diff --git a/apps/files_sharing/src/mixins/ShareRequests.js b/apps/files_sharing/src/mixins/ShareRequests.js index 15585ec49cf..bc6e3bf1644 100644 --- a/apps/files_sharing/src/mixins/ShareRequests.js +++ b/apps/files_sharing/src/mixins/ShareRequests.js @@ -31,9 +31,6 @@ import axios from '@nextcloud/axios' import Share from '../models/Share' const shareUrl = generateOcsUrl('apps/files_sharing/api/v1/shares') -const headers = { - 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', -} export default { methods: { @@ -103,7 +100,7 @@ export default { */ async updateShare(id, properties) { try { - const request = await axios.put(shareUrl + `/${id}`, properties, headers) + const request = await axios.put(shareUrl + `/${id}`, properties) if (!request?.data?.ocs) { throw request } -- cgit v1.2.3