aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/mixins/ShareRequests.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/mixins/ShareRequests.js')
-rw-r--r--apps/files_sharing/src/mixins/ShareRequests.js5
1 files changed, 1 insertions, 4 deletions
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
}