diff --git a/webui/web/js/api.js b/webui/web/js/api.js index 3e12e30a..0ec6de2f 100644 --- a/webui/web/js/api.js +++ b/webui/web/js/api.js @@ -1846,9 +1846,7 @@ ${tagsXml} */ async putBucketPolicy(bucket, policy) { const policyJson = JSON.stringify(policy); - await this.request('PUT', `/${bucket}`, { policy: '' }, policyJson, { - 'Content-Type': 'application/json' - }); + await this.request('PUT', `/${bucket}`, { policy: '' }, policyJson, false, 'application/json'); } /**